mirror of
https://github.com/brl/mutter.git
synced 2025-04-15 14:49:39 +00:00
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:
parent
ff59b5d041
commit
01aaced129
@ -63,6 +63,8 @@ meta_crtc_finalize (GObject *object)
|
|||||||
if (crtc->driver_notify)
|
if (crtc->driver_notify)
|
||||||
crtc->driver_notify (crtc);
|
crtc->driver_notify (crtc);
|
||||||
|
|
||||||
|
g_clear_pointer (&crtc->config, g_free);
|
||||||
|
|
||||||
G_OBJECT_CLASS (meta_crtc_parent_class)->finalize (object);
|
G_OBJECT_CLASS (meta_crtc_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user