From 158af1ff594d8984b59dcf90654ed04cd8c53e16 Mon Sep 17 00:00:00 2001 From: Sunjin Yang Date: Thu, 21 Aug 2014 15:17:34 +0100 Subject: [PATCH] actor: Plug a leak in the implicit transition removal We need to release the temporary reference we acquired in order for the signal emission to work. https://bugzilla.gnome.org/show_bug.cgi?id=734761 Signed-off-by: Emmanuele Bassi --- clutter/clutter-actor.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index fad7b0e8a..d29d03697 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -18724,6 +18724,14 @@ on_transition_stopped (ClutterTransition *transition, g_signal_emit (actor, actor_signals[TRANSITIONS_COMPLETED], 0); } + + if (clos->is_implicit || + clutter_transition_get_remove_on_complete (transition)) + { + /* release the reference we acquired above */ + g_object_unref (transition); + } + } static void