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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3188>
This commit is contained in:
Sebastian Keller 2023-08-16 21:08:23 +02:00
parent 03ba3a825e
commit 193a21c601

View File

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