backends/crtc: Fix leak of MetaCrtcMode name string

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1020
This commit is contained in:
Sebastian Keller 2020-01-24 18:49:13 +01:00 committed by Georges Basile Stavracas Neto
parent a63e80ec64
commit 66fe6d85d0

View File

@ -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);
}