[clutter] bin-layout: Fix a leak



commit 0f8e3ab4aa5980634d8c0b3c97830b31a3b34a67
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Jul 26 13:55:01 2011 +0100

    bin-layout: Fix a leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655342

 clutter/clutter-bin-layout.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c
index f00a8c1..acf097b 100644
--- a/clutter/clutter-bin-layout.c
+++ b/clutter/clutter-bin-layout.c
@@ -359,6 +359,8 @@ clutter_bin_layout_get_preferred_width (ClutterLayoutManager *manager,
 
   if (nat_width_p)
     *nat_width_p = nat_width;
+
+  g_list_free (children);
 }
 
 static void
@@ -392,6 +394,8 @@ clutter_bin_layout_get_preferred_height (ClutterLayoutManager *manager,
 
   if (nat_height_p)
     *nat_height_p = nat_height;
+
+  g_list_free (children);
 }
 
 static gdouble



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