[mutter] color-store: Fix small file path leak in ensure_device_profile



commit 48ff21176269cf8d41c83a7f53e8ac5ceea089b4
Author: Sebastian Keller <skeller gnome org>
Date:   Thu Sep 1 19:55:22 2022 +0200

    color-store: Fix small file path leak in ensure_device_profile
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2603>

 src/backends/meta-color-store.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-color-store.c b/src/backends/meta-color-store.c
index ae01883906..8f1dad2f45 100644
--- a/src/backends/meta-color-store.c
+++ b/src/backends/meta-color-store.c
@@ -494,7 +494,7 @@ meta_color_store_ensure_device_profile (MetaColorStore      *color_store,
   const char *edid_checksum_md5;
   g_autoptr (GTask) task = NULL;
   g_autofree char *file_name = NULL;
-  char *file_path;
+  g_autofree char *file_path = NULL;
   EnsureDeviceProfileData *data;
   MetaColorProfile *color_profile;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]