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:
Sebastian Keller 2022-01-02 04:40:28 +01:00
parent b596de2680
commit 3941597485

View File

@ -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));