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
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ meta_surface_actor_wayland_apply_transform (ClutterActor *actor,
|
||||||
MetaWaylandSurface *root_surface;
|
MetaWaylandSurface *root_surface;
|
||||||
MetaWindow *window;
|
MetaWindow *window;
|
||||||
MetaLogicalMonitor *logical_monitor;
|
MetaLogicalMonitor *logical_monitor;
|
||||||
ClutterActorBox *allocation;
|
g_autoptr (ClutterActorBox) allocation = NULL;
|
||||||
float scale;
|
float scale;
|
||||||
float actor_width, actor_height;
|
float actor_width, actor_height;
|
||||||
float adj_actor_width, adj_actor_height;
|
float adj_actor_width, adj_actor_height;
|
||||||
|
|
Loading…
Reference in a new issue