ClutterAnimation: fix memory leak

We need to unref the timeline

https://bugzilla.gnome.org/show_bug.cgi?id=733300
This commit is contained in:
Giovanni Campagna 2014-07-17 10:53:32 +02:00
parent f6fd02970c
commit c167d3a4d3

View File

@ -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);