crtc: Don't leak MetaCrtcConfig

We never freed it except when CRTC disabled during runtime.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1095
This commit is contained in:
Jonas Ådahl 2020-02-26 16:54:25 +01:00
parent ff59b5d041
commit 01aaced129

View File

@ -63,6 +63,8 @@ meta_crtc_finalize (GObject *object)
if (crtc->driver_notify)
crtc->driver_notify (crtc);
g_clear_pointer (&crtc->config, g_free);
G_OBJECT_CLASS (meta_crtc_parent_class)->finalize (object);
}