ClutterAnimation: fix memory leak
We need to unref the timeline https://bugzilla.gnome.org/show_bug.cgi?id=733300
This commit is contained in:
parent
f6fd02970c
commit
c167d3a4d3
@ -305,6 +305,12 @@ clutter_animation_dispose (GObject *gobject)
|
|||||||
priv->timeline_completed_id = 0;
|
priv->timeline_completed_id = 0;
|
||||||
priv->timeline_frame_id = 0;
|
priv->timeline_frame_id = 0;
|
||||||
|
|
||||||
|
if (priv->timeline != NULL)
|
||||||
|
{
|
||||||
|
g_object_unref (priv->timeline);
|
||||||
|
priv->timeline = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (priv->alpha != NULL)
|
if (priv->alpha != NULL)
|
||||||
{
|
{
|
||||||
g_object_unref (priv->alpha);
|
g_object_unref (priv->alpha);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user