summaryrefslogtreecommitdiff
path: root/clutter/clutter-actor.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2019-10-07 18:45:58 +0200
committerJonas Ådahl <jadahl@gmail.com>2019-10-07 18:45:58 +0200
commitc70913e2df8c8e3b924ca355e73cc12bfb45fcb7 (patch)
treee4480a4625f8adc5ec0a53cb78aeefe59ad95f47 /clutter/clutter-actor.c
parent25be50900b3c9745c4da45db347bd985b9f96c6f (diff)
downloadclutter-c70913e2df8c8e3b924ca355e73cc12bfb45fcb7.tar.gz
transition: Don't split reference counting with actor
ClutterActor took a reference in its transition 'stopped' handler, aiming to keep the transition alive during signal emission even if it was removed during. This is, however, already taken care of by ClutterTimeline, by always taking a reference during its 'stopped' signal emission, so no need to add another one. This also has the bonus of making reference ownership simpler, as well as avoidance of double free if an actor was destroyed before a transition has finished.
Diffstat (limited to 'clutter/clutter-actor.c')
-rw-r--r--clutter/clutter-actor.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 6e7fefe75..fd2990116 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -19046,13 +19046,6 @@ on_transition_stopped (ClutterTransition *transition,
if (clutter_transition_get_remove_on_complete (transition))
{
- /* we take a reference here because removing the closure will release the
- * reference on the transition, and we want the transition to survive the
- * signal emission. It'll be unreferenced by the remove-on-complete
- * handling in ClutterTransition::stopped.
- */
- g_object_ref (transition);
-
/* this is safe, because the timeline has now stopped,
* so we won't recurse; the reference on the Animatable
* will be dropped by the ::stopped signal closure in