]> Pileus Git - ~andy/gtk/commitdiff
Free children in all cases. (#313862, Kjartan Maraas)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Aug 2005 05:16:31 +0000 (05:16 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 19 Aug 2005 05:16:31 +0000 (05:16 +0000)
2005-08-19  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
children in all cases.  (#313862, Kjartan Maraas)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/x11/gdkdnd-x11.c

index 8e80e0dbd7e0915d99b5ba17e0c4b001b8a34cfb..3ee24dc4cad4a0cb9fbc668bdcf51bc6cec5752d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
+       children in all cases.  (#313862, Kjartan Maraas)
+
        * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
        in the per-directory hash, even if they come from the icon cache. 
        We tried to avoid that before, but as a result leaked icon data
index 8e80e0dbd7e0915d99b5ba17e0c4b001b8a34cfb..3ee24dc4cad4a0cb9fbc668bdcf51bc6cec5752d 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
+       children in all cases.  (#313862, Kjartan Maraas)
+
        * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
        in the per-directory hash, even if they come from the icon cache. 
        We tried to avoid that before, but as a result leaked icon data
index 8e80e0dbd7e0915d99b5ba17e0c4b001b8a34cfb..3ee24dc4cad4a0cb9fbc668bdcf51bc6cec5752d 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
+       children in all cases.  (#313862, Kjartan Maraas)
+
        * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
        in the per-directory hash, even if they come from the icon cache. 
        We tried to avoid that before, but as a result leaked icon data
index eb215d85892e0d419958642aeda2e713761b1eeb..9dbb54f29a41a28605109715681e2c0477885a55 100644 (file)
@@ -548,7 +548,11 @@ get_client_window_at_coords_recurse (GdkDisplay *display,
     return None;
 
   if (has_wm_state)
-    return win;
+    {
+      g_free (children);
+
+      return win;
+    }
 
   for (i = nchildren - 1; (i >= 0) && !found_child; i--)
     {