From 7fbef2cb6ec5cb414535c5294bdc1f54f2d16522 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sun, 19 Mar 2023 01:52:54 +0100 Subject: [PATCH] kms/impl-device: Fix result listener list leak queue_result_feedback() takes ownership of the result listeners list via meta_kms_update_take_result_listeners(), but does not free it. Part-of: --- src/backends/native/meta-kms-impl-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index ef2890ffd..d56636d55 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -1008,7 +1008,7 @@ queue_result_feedback (MetaKmsImplDevice *impl_device, MetaKmsImplDevicePrivate *priv = meta_kms_impl_device_get_instance_private (impl_device); MetaKms *kms = meta_kms_device_get_kms (priv->device); - GList *result_listeners; + g_autoptr (GList) result_listeners = NULL; GList *l; result_listeners = meta_kms_update_take_result_listeners (update);