kms: Fix drm_connector mem-leak in meta_kms_connector_update_state

https://gitlab.gnome.org/GNOME/mutter/merge_requests/713
This commit is contained in:
Hans de Goede 2019-08-02 22:56:38 +02:00 committed by Jonas Ådahl
parent 3ccb7cf4b2
commit 0eb355e29d

View File

@ -490,6 +490,8 @@ meta_kms_connector_update_state (MetaKmsConnector *connector,
meta_kms_connector_read_state (connector, impl_device, meta_kms_connector_read_state (connector, impl_device,
drm_connector, drm_connector,
drm_resources); drm_resources);
if (drm_connector)
drmModeFreeConnector (drm_connector);
} }
static void static void