mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Destroy editors first to avoid disconnection from dead signals.
This commit is contained in:
parent
2835d642a0
commit
100894ceea
@ -297,12 +297,17 @@ int App::run()
|
||||
// Run the GUI main message loop
|
||||
gui_run();
|
||||
|
||||
// Uninstall support to drop files
|
||||
uninstall_drop_files();
|
||||
|
||||
// Remove the root-menu from the menu-bar (because the rootmenu
|
||||
// module should destroy it).
|
||||
menubar->setMenu(NULL);
|
||||
|
||||
// Delete all editors first because they used signals from other
|
||||
// widgets (e.g. color bar).
|
||||
jwidget_free(box_editors);
|
||||
|
||||
// Destroy the top-window
|
||||
jwidget_free(top_window);
|
||||
top_window = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user