mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798098 - Crash popup show when have 3 Windows in OSX
Don't free things twice, it always ends in tears.
This commit is contained in:
parent
a754289daa
commit
9583c09f62
@ -3324,8 +3324,9 @@ gnc_main_window_close_page (GncPluginPage *page)
|
||||
gnc_main_window_remove_prefs (window);
|
||||
|
||||
gtk_widget_destroy (GTK_WIDGET(window));
|
||||
window = NULL;
|
||||
}
|
||||
if (g_list_length (active_windows) > 1)
|
||||
if (window && g_list_length (active_windows) > 1)
|
||||
{
|
||||
gtk_widget_destroy (GTK_WIDGET(window));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user