[clutter/clutter-1.18] ClutterAnimation: fix memory leak



commit fbf459527056c4ffc2f2b018acdca80afd6316b5
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Jul 17 10:53:32 2014 +0200

    ClutterAnimation: fix memory leak
    
    We need to unref the timeline
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733300
    (cherry picked from commit c167d3a4d307d759d461ddca56ebeb4bbd74dce6)
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 clutter/deprecated/clutter-animation.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter/deprecated/clutter-animation.c b/clutter/deprecated/clutter-animation.c
index e0932b5..06a8f8d 100644
--- a/clutter/deprecated/clutter-animation.c
+++ b/clutter/deprecated/clutter-animation.c
@@ -305,6 +305,12 @@ clutter_animation_dispose (GObject *gobject)
   priv->timeline_completed_id = 0;
   priv->timeline_frame_id = 0;
 
+  if (priv->timeline != NULL)
+    {
+      g_object_unref (priv->timeline);
+      priv->timeline = NULL;
+    }
+
   if (priv->alpha != NULL)
     {
       g_object_unref (priv->alpha);


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