diff options
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index 1ddc30e..17941db 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -654,11 +654,7 @@ fr_window_finalize (GObject *object) window->priv = NULL; } - WindowList = g_list_remove (WindowList, window); - - G_OBJECT_CLASS (parent_class)->finalize (object); - - if (WindowList == NULL) { + if (gtk_application_get_windows (GTK_APPLICATION (g_application_get_default ())) == NULL) { if (pixbuf_hash != NULL) { g_hash_table_foreach (pixbuf_hash, gh_unref_pixbuf, @@ -674,6 +670,8 @@ fr_window_finalize (GObject *object) tree_pixbuf_hash = NULL; } } + + G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -812,8 +810,6 @@ fr_window_init (FrWindow *window) "unrealize", G_CALLBACK (fr_window_unrealized), NULL); - - WindowList = g_list_prepend (WindowList, window); } |