[mutter] window-actor/wayland: Fix child actor list leak on dispose
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window-actor/wayland: Fix child actor list leak on dispose
- Date: Sun, 2 Jan 2022 12:35:51 +0000 (UTC)
commit 3941597485155cdf425ebe5c6f1e5be3e3bde7ef
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>
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]