diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2010-05-20 19:03:13 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2010-05-20 19:03:13 +0000 |
commit | 1a3fd99542a5f824e6cb8343694e057229d7a04c (patch) | |
tree | cbc50e9c645688902e54bbe783c1b13ec466bb38 /gtk/gui_utils.c | |
parent | 39bd052f7b528431e7379b9834f4c1b546905730 (diff) | |
download | wireshark-1a3fd99542a5f824e6cb8343694e057229d7a04c.tar.gz wireshark-1a3fd99542a5f824e6cb8343694e057229d7a04c.tar.bz2 wireshark-1a3fd99542a5f824e6cb8343694e057229d7a04c.zip |
Fix for bug 4778:
Check that the widget pointer is still present.
svn path=/trunk/; revision=32911
Diffstat (limited to 'gtk/gui_utils.c')
-rw-r--r-- | gtk/gui_utils.c | 3 |
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 |