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 <ebassi@gnome.org>
This commit is contained in:
Sunjin Yang 2014-08-21 15:17:34 +01:00 committed by Emmanuele Bassi
parent 018c1665ee
commit 158af1ff59

View File

@ -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