mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
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:
parent
03ba3a825e
commit
193a21c601
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user