[gnome-flashback] backends: fix memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] backends: fix memory leak
- Date: Tue, 18 Feb 2020 19:47:32 +0000 (UTC)
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]