[gtk+] x11: Don't crash when NULL eometry hints are set



commit 7f016412806fe99a0c84764334085b39f32e28d2
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 31 03:02:08 2013 +0200

    x11: Don't crash when NULL eometry hints are set
    
    Fixes crashers in gnome-panel.

 gdk/x11/gdkwindow-x11.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 52f3642..7a99d30 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -2478,7 +2478,8 @@ gdk_x11_window_set_geometry_hints (GdkWindow         *window,
   toplevel = _gdk_x11_window_get_toplevel (window);
   if (toplevel)
     {
-      toplevel->last_geometry_hints = *geometry;
+      if (geometry)
+        toplevel->last_geometry_hints = *geometry;
       toplevel->last_geometry_hints_mask = geom_mask;
     }
   


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]