mirror of
https://github.com/brl/mutter.git
synced 2024-12-03 21:30:41 -05:00
actor: Do not leak the layout manager
This commit is contained in:
parent
038aadfa72
commit
2894587b22
@ -3997,6 +3997,13 @@ clutter_actor_dispose (GObject *object)
|
|||||||
g_clear_object (&priv->effects);
|
g_clear_object (&priv->effects);
|
||||||
g_clear_object (&priv->flatten_effect);
|
g_clear_object (&priv->flatten_effect);
|
||||||
|
|
||||||
|
if (priv->layout_manager != NULL)
|
||||||
|
{
|
||||||
|
clutter_layout_manager_set_container (priv->layout_manager, NULL);
|
||||||
|
g_object_unref (priv->layout_manager);
|
||||||
|
priv->layout_manager = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (clutter_actor_parent_class)->dispose (object);
|
G_OBJECT_CLASS (clutter_actor_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user