aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2010-05-20 19:03:13 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2010-05-20 19:03:13 +0000
commit1a3fd99542a5f824e6cb8343694e057229d7a04c (patch)
treecbc50e9c645688902e54bbe783c1b13ec466bb38 /gtk
parent39bd052f7b528431e7379b9834f4c1b546905730 (diff)
Fix for bug 4778:
Check that the widget pointer is still present. svn path=/trunk/; revision=32911
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gui_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c
index bb178694ab..b36e48aa38 100644
--- a/gtk/gui_utils.c
+++ b/gtk/gui_utils.c
@@ -484,6 +484,9 @@ window_destroy(GtkWidget *win)
window_geometry_t geom;
const gchar *name;
+ if (!win)
+ return;
+
/* get_geometry must be done *before* destroy is running, as the window geometry
* cannot be retrieved at destroy time (so don't use event "destroy" for this) */
/* ...and don't do this at all, if we currently have no GdkWindow (e.g. if the