From c167d3a4d307d759d461ddca56ebeb4bbd74dce6 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 17 Jul 2014 10:53:32 +0200 Subject: [PATCH] ClutterAnimation: fix memory leak We need to unref the timeline https://bugzilla.gnome.org/show_bug.cgi?id=733300 --- clutter/deprecated/clutter-animation.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/deprecated/clutter-animation.c b/clutter/deprecated/clutter-animation.c index e0932b553..06a8f8d42 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);