From 0eb355e29d0a0644dcf30732f07c56b83ac9fd1c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 2 Aug 2019 22:56:38 +0200 Subject: [PATCH] kms: Fix drm_connector mem-leak in meta_kms_connector_update_state https://gitlab.gnome.org/GNOME/mutter/merge_requests/713 --- src/backends/native/meta-kms-connector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-kms-connector.c b/src/backends/native/meta-kms-connector.c index 226dd5e71..8eed11229 100644 --- a/src/backends/native/meta-kms-connector.c +++ b/src/backends/native/meta-kms-connector.c @@ -490,6 +490,8 @@ meta_kms_connector_update_state (MetaKmsConnector *connector, meta_kms_connector_read_state (connector, impl_device, drm_connector, drm_resources); + if (drm_connector) + drmModeFreeConnector (drm_connector); } static void