From 90f68edbdafc3a9a1c06c5cd414773ebb29d6071 Mon Sep 17 00:00:00 2001 From: "Craig R. Hughes" Date: Thu, 28 Mar 2013 13:51:41 -0700 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 5d7130e2f..889aa71a9 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -13314,6 +13314,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); } @@ -13360,6 +13361,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); }