mirror of
https://github.com/brl/mutter.git
synced 2024-12-03 05:10:40 -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->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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user