[gnome-flashback] backends: fix memory leak



commit 51ab836a3eb661d074e81526eb0383a059cae20d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Feb 18 19:30:51 2020 +0200

    backends: fix memory leak
    
    https://gitlab.gnome.org/GNOME/mutter/commit/66fe6d85d011933eaa6fb

 backends/gf-crtc-mode.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/backends/gf-crtc-mode.c b/backends/gf-crtc-mode.c
index 5eb9226..1163ec4 100644
--- a/backends/gf-crtc-mode.c
+++ b/backends/gf-crtc-mode.c
@@ -31,6 +31,8 @@ gf_crtc_mode_finalize (GObject *object)
   if (crtc_mode->driver_notify)
     crtc_mode->driver_notify (crtc_mode);
 
+  g_clear_pointer (&crtc_mode->name, g_free);
+
   G_OBJECT_CLASS (gf_crtc_mode_parent_class)->finalize (object);
 }
 


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