[clutter/clutter-1.14] clutter_actor_set_child_above/below_sibling leaking a reference



commit d82643c10bf26ec554cf6a8548a3cf507786bf0e
Author: Craig R. Hughes <craig git rungie com>
Date:   Thu Mar 28 13:51:41 2013 -0700

    clutter_actor_set_child_above/below_sibling leaking a reference
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696813

 clutter/clutter-actor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 8db166b..7535255 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -13292,6 +13292,7 @@ clutter_actor_set_child_above_sibling (ClutterActor *self,
                                     ADD_CHILD_NOTIFY_FIRST_LAST,
                                     insert_child_above,
                                     sibling);
+  g_object_unref(child);
 
   clutter_actor_queue_relayout (self);
 }
@@ -13338,6 +13339,7 @@ clutter_actor_set_child_below_sibling (ClutterActor *self,
                                     ADD_CHILD_NOTIFY_FIRST_LAST,
                                     insert_child_below,
                                     sibling);
+  g_object_unref(child);
 
   clutter_actor_queue_relayout (self);
 }


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