[mutter/cherry-pick-39415974] window-actor/wayland: Fix child actor list leak on dispose




commit 2368d85c3d1d45b542a0c7ecc4f06c8d80c22b05
Author: Sebastian Keller <skeller gnome org>
Date:   Sun Jan 2 04:40:28 2022 +0100

    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>
    
    
    (cherry picked from commit 3941597485155cdf425ebe5c6f1e5be3e3bde7ef)

 src/compositor/meta-window-actor-wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/compositor/meta-window-actor-wayland.c b/src/compositor/meta-window-actor-wayland.c
index 641c924db3..bdc5c5a531 100644
--- a/src/compositor/meta-window-actor-wayland.c
+++ b/src/compositor/meta-window-actor-wayland.c
@@ -155,7 +155,7 @@ meta_window_actor_wayland_dispose (GObject *object)
   MetaWindowActor *window_actor = META_WINDOW_ACTOR (object);
   MetaSurfaceActor *surface_actor =
     meta_window_actor_get_surface (window_actor);
-  GList *children;
+  g_autoptr (GList) children = NULL;
   GList *l;
 
   children = clutter_actor_get_children (CLUTTER_ACTOR (window_actor));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]