From 193a21c601fc26475e2c329029e70ea1fa4bd1e1 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Wed, 16 Aug 2023 21:08:23 +0200 Subject: [PATCH] surface-actor-wayland: Fix leak in apply_transform() Using g_object_get() to get the allocation creates a copy that needs to be freed by the caller. Fixes: e94b52777 ("surface-actor/wayland: Implement stable size and position rounding") Part-of: --- src/compositor/meta-surface-actor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-surface-actor-wayland.c b/src/compositor/meta-surface-actor-wayland.c index 050ece959..d288be864 100644 --- a/src/compositor/meta-surface-actor-wayland.c +++ b/src/compositor/meta-surface-actor-wayland.c @@ -174,7 +174,7 @@ meta_surface_actor_wayland_apply_transform (ClutterActor *actor, MetaWaylandSurface *root_surface; MetaWindow *window; MetaLogicalMonitor *logical_monitor; - ClutterActorBox *allocation; + g_autoptr (ClutterActorBox) allocation = NULL; float scale; float actor_width, actor_height; float adj_actor_width, adj_actor_height;