summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Keller <skeller@gnome.org>2023-03-19 01:52:54 +0100
committerMarge Bot <marge-bot@gnome.org>2023-03-19 22:05:00 +0000
commit7fbef2cb6ec5cb414535c5294bdc1f54f2d16522 (patch)
tree28d79e1a593490238b16681c42102010cb227c9f /src
parenta958417e952cc80b6102a4441d6e48235efa1c5d (diff)
downloadmutter-7fbef2cb6ec5cb414535c5294bdc1f54f2d16522.tar.gz
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2922>
Diffstat (limited to 'src')
-rw-r--r--src/backends/native/meta-kms-impl-device.c2
1 files changed, 1 insertions, 1 deletions
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);