mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
wayland/surface: Plug leak in meta_wayland_surface_assign_role
The underlying data of the names array is not used anymore after this, so it should be freed as well. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1020
This commit is contained in:
parent
d28a640960
commit
f0c92646eb
@ -206,7 +206,7 @@ meta_wayland_surface_assign_role (MetaWaylandSurface *surface,
|
||||
(const GValue *) values->data);
|
||||
surface->role = META_WAYLAND_SURFACE_ROLE (role_object);
|
||||
|
||||
g_array_free (names, FALSE);
|
||||
g_array_free (names, TRUE);
|
||||
g_array_free (values, TRUE);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user