backends/crtc: Fix leak of MetaCrtcMode name string
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1020
This commit is contained in:
parent
a63e80ec64
commit
66fe6d85d0
@ -63,6 +63,8 @@ meta_crtc_mode_finalize (GObject *object)
|
|||||||
if (crtc_mode->driver_notify)
|
if (crtc_mode->driver_notify)
|
||||||
crtc_mode->driver_notify (crtc_mode);
|
crtc_mode->driver_notify (crtc_mode);
|
||||||
|
|
||||||
|
g_clear_pointer (&crtc_mode->name, g_free);
|
||||||
|
|
||||||
G_OBJECT_CLASS (meta_crtc_mode_parent_class)->finalize (object);
|
G_OBJECT_CLASS (meta_crtc_mode_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user