[clutter/clutter-1.20] actor: Plug a leak in the implicit transition removal



commit 158af1ff594d8984b59dcf90654ed04cd8c53e16
Author: Sunjin Yang <fan4326 gmail com>
Date:   Thu Aug 21 15:17:34 2014 +0100

    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>

 clutter/clutter-actor.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index fad7b0e..d29d036 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


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