Skip to content

Commit

Permalink
use close rather than destroy
Browse files Browse the repository at this point in the history
It looks like the main window is being destroyed before the dialogs have been freed. Using close seems to have the same effect but lets GTK destroy everything gracefully?
  • Loading branch information
jwahlstrand committed Nov 6, 2023
1 parent f609c58 commit 0d2dd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/gui/dialogs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ error_dialog("Here's an error", main_window; timeout = 0.25)
sleep(1.0)
GC.gc()
sleep(1.0)
destroy(main_window)
close(main_window)

end

Expand All @@ -52,7 +52,7 @@ sleep(1.0)

GC.gc() # ensure GtkDialog is really gone before main_window

destroy(main_window)
close(main_window)

end

Expand Down

0 comments on commit 0d2dd8e

Please sign in to comment.