diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-04-08 21:20:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-04-08 21:20:26 -0400 |
commit | 9e6d3d969cd314093e161a3c1feba1612ed403bc (patch) | |
tree | a43e47bc10887803f01547903d6127feae3da6b3 /gdk/gdkdisplay.c | |
parent | 32358a58f4a5da12a5b04faad7c02b634079d7b2 (diff) | |
download | gtk+-9e6d3d969cd314093e161a3c1feba1612ed403bc.tar.gz |
Fix some possible crashes if the default display is NULL
Unlikely that many people will hit these, but still.
https://bugzilla.gnome.org/show_bug.cgi?id=645176
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r-- | gdk/gdkdisplay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 1b8c7e7478..f2c95f7dc3 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -134,7 +134,8 @@ gdk_display_class_init (GdkDisplayClass *class) static void free_pointer_info (GdkPointerWindowInfo *info) { - g_object_unref (info->toplevel_under_pointer); + if (info->toplevel_under_pointer) + g_object_unref (info->toplevel_under_pointer); g_slice_free (GdkPointerWindowInfo, info); } |