diff options
-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 |