[mutter] backends/crtc: Fix leak of MetaCrtcMode name string
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backends/crtc: Fix leak of MetaCrtcMode name string
- Date: Fri, 24 Jan 2020 21:16:50 +0000 (UTC)
commit 66fe6d85d011933eaa6fb021f9d827685e8381ac
Author: Sebastian Keller <skeller gnome org>
Date: Fri Jan 24 18:49:13 2020 +0100
backends/crtc: Fix leak of MetaCrtcMode name string
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1020
src/backends/meta-crtc.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/backends/meta-crtc.c b/src/backends/meta-crtc.c
index 7ca31ba39..85424c575 100644
--- a/src/backends/meta-crtc.c
+++ b/src/backends/meta-crtc.c
@@ -63,6 +63,8 @@ meta_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 (meta_crtc_mode_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]