Removing the window from the window list before setting the
application to %NULL avoids gtk_application_remove_window() triggering
another call to gtk_application_window_removed(), which would release
the application a second time.
https://bugzilla.gnome.org/show_bug.cgi?id=653053
application);
g_application_release (G_APPLICATION (application));
- gtk_window_set_application (window, NULL);
priv->windows = g_list_remove (priv->windows, window);
+ gtk_window_set_application (window, NULL);
}
static void