[gtk+] Avoid GApplication being released twice on gtk_application_remove_window() calls
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid GApplication being released twice on gtk_application_remove_window() calls
- Date: Tue, 21 Jun 2011 06:49:14 +0000 (UTC)
commit c3b7590c77724d84af8e65ea234d971a5f331c23
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Jun 21 00:29:45 2011 +0300
Avoid GApplication being released twice on gtk_application_remove_window() calls
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
gtk/gtkapplication.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 496a010..c6db4e8 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -191,8 +191,8 @@ gtk_application_window_removed (GtkApplication *application,
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]