[clutter/clutter-1.20] ClutterAnimation: fix memory leak
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.20] ClutterAnimation: fix memory leak
- Date: Thu, 17 Jul 2014 14:41:02 +0000 (UTC)
commit c167d3a4d307d759d461ddca56ebeb4bbd74dce6
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
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]