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:
Sebastian Keller 2020-01-24 13:53:08 +01:00 committed by Georges Basile Stavracas Neto
parent d28a640960
commit f0c92646eb

View File

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