kms/device: Avoid leaking some fields

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2926>
This commit is contained in:
Jonas Ådahl 2023-03-19 22:11:12 +01:00 committed by Marge Bot
parent 7fbef2cb6e
commit 176418d0e7

View File

@ -578,6 +578,9 @@ meta_kms_device_finalize (GObject *object)
MetaKmsDevice *device = META_KMS_DEVICE (object);
g_free (device->path);
g_free (device->driver_name);
g_free (device->driver_description);
g_list_free (device->fallback_modes);
g_list_free (device->crtcs);
g_list_free (device->connectors);
g_list_free (device->planes);