[mutter] wayland/surface: Plug leak in meta_wayland_surface_assign_role



commit f0c92646eb4e5a2d11a477af16b7bd8cdf2f70d2
Author: Sebastian Keller <skeller gnome org>
Date:   Fri Jan 24 13:53:08 2020 +0100

    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

 src/wayland/meta-wayland-surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 74e134fb6..c991d6553 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]