mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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_frame_id = 0;
|
||||
|
||||
if (priv->timeline != NULL)
|
||||
{
|
||||
g_object_unref (priv->timeline);
|
||||
priv->timeline = NULL;
|
||||
}
|
||||
|
||||
if (priv->alpha != NULL)
|
||||
{
|
||||
g_object_unref (priv->alpha);
|
||||
|
Loading…
Reference in New Issue
Block a user