From 5fdb6a847f4e5681ca4943e06b2f03d7c5cb5f89 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Wed, 16 Aug 2023 21:13:20 +0200 Subject: [PATCH] kms/update: Free struct in meta_kms_crtc_color_updates_free() The free function was only freeing the structs its members were pointing to, but not the struct itself, causing a small leak. Fixes: 0180ffdaa ("backends/native: Introduce MetaKmsCrtcColorUpdate") Part-of: --- src/backends/native/meta-kms-update.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/native/meta-kms-update.c b/src/backends/native/meta-kms-update.c index 90e417c55..208015868 100644 --- a/src/backends/native/meta-kms-update.c +++ b/src/backends/native/meta-kms-update.c @@ -520,6 +520,7 @@ meta_kms_crtc_color_updates_free (MetaKmsCrtcColorUpdate *color_update) { if (color_update->gamma.has_update) g_clear_pointer (&color_update->gamma.state, meta_gamma_lut_free); + g_free (color_update); } void