window-actor/wayland: Fix child actor list leak on dispose
The list returned by clutter_actor_get_children() is caller owned. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2193>
This commit is contained in:
parent
b596de2680
commit
3941597485
@ -155,7 +155,7 @@ meta_window_actor_wayland_dispose (GObject *object)
|
|||||||
MetaWindowActor *window_actor = META_WINDOW_ACTOR (object);
|
MetaWindowActor *window_actor = META_WINDOW_ACTOR (object);
|
||||||
MetaSurfaceActor *surface_actor =
|
MetaSurfaceActor *surface_actor =
|
||||||
meta_window_actor_get_surface (window_actor);
|
meta_window_actor_get_surface (window_actor);
|
||||||
GList *children;
|
g_autoptr (GList) children = NULL;
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
children = clutter_actor_get_children (CLUTTER_ACTOR (window_actor));
|
children = clutter_actor_get_children (CLUTTER_ACTOR (window_actor));
|
||||||
|
Loading…
Reference in New Issue
Block a user