Blame SOURCES/0017-CrtcMode-Free-the-mode-name-on-finalize.patch

79df40
From 172906f150a15658e2b375340307e3d48b640d42 Mon Sep 17 00:00:00 2001
79df40
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
79df40
Date: Mon, 22 Jul 2019 00:04:33 +0200
79df40
Subject: [PATCH 17/28] CrtcMode: Free the mode name on finalize
79df40
79df40
https://gitlab.gnome.org/GNOME/mutter/merge_requests/682
79df40
---
79df40
 src/backends/meta-crtc.c | 2 ++
79df40
 1 file changed, 2 insertions(+)
79df40
79df40
diff --git a/src/backends/meta-crtc.c b/src/backends/meta-crtc.c
79df40
index 7ca31ba39..e4da25c5a 100644
79df40
--- a/src/backends/meta-crtc.c
79df40
+++ b/src/backends/meta-crtc.c
79df40
@@ -36,45 +36,47 @@ meta_crtc_finalize (GObject *object)
79df40
 {
79df40
   MetaCrtc *crtc = META_CRTC (object);
79df40
 
79df40
   if (crtc->driver_notify)
79df40
     crtc->driver_notify (crtc);
79df40
 
79df40
   G_OBJECT_CLASS (meta_crtc_parent_class)->finalize (object);
79df40
 }
79df40
 
79df40
 static void
79df40
 meta_crtc_init (MetaCrtc *crtc)
79df40
 {
79df40
 }
79df40
 
79df40
 static void
79df40
 meta_crtc_class_init (MetaCrtcClass *klass)
79df40
 {
79df40
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
79df40
 
79df40
   object_class->finalize = meta_crtc_finalize;
79df40
 }
79df40
 
79df40
 static void
79df40
 meta_crtc_mode_finalize (GObject *object)
79df40
 {
79df40
   MetaCrtcMode *crtc_mode = META_CRTC_MODE (object);
79df40
 
79df40
   if (crtc_mode->driver_notify)
79df40
     crtc_mode->driver_notify (crtc_mode);
79df40
 
79df40
+  g_free (crtc_mode->name);
79df40
+
79df40
   G_OBJECT_CLASS (meta_crtc_mode_parent_class)->finalize (object);
79df40
 }
79df40
 
79df40
 static void
79df40
 meta_crtc_mode_init (MetaCrtcMode *crtc_mode)
79df40
 {
79df40
 }
79df40
 
79df40
 static void
79df40
 meta_crtc_mode_class_init (MetaCrtcModeClass *klass)
79df40
 {
79df40
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
79df40
 
79df40
   object_class->finalize = meta_crtc_mode_finalize;
79df40
 }
79df40
-- 
79df40
2.26.2
79df40