[mutter] color-store: Fix two small leaks in init_profile_directory
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] color-store: Fix two small leaks in init_profile_directory
- Date: Thu, 1 Sep 2022 22:13:05 +0000 (UTC)
commit 3e22eb35ed90a6b19825c38f48e1b3d4831f780d
Author: Sebastian Keller <skeller gnome org>
Date: Thu Sep 1 20:14:41 2022 +0200
color-store: Fix two small leaks in init_profile_directory
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2603>
src/backends/meta-color-store.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-color-store.c b/src/backends/meta-color-store.c
index 8f1dad2f45..1e6038374b 100644
--- a/src/backends/meta-color-store.c
+++ b/src/backends/meta-color-store.c
@@ -376,7 +376,7 @@ init_profile_directory (MetaColorStore *color_store,
while (TRUE)
{
- GFileInfo *file_info;
+ g_autoptr (GFileInfo) file_info = NULL;
file_info = g_file_enumerator_next_file (enumerator, NULL, error);
if (!file_info)
@@ -406,7 +406,7 @@ init_profile_directory (MetaColorStore *color_store,
case G_FILE_TYPE_SYMBOLIC_LINK:
{
const char *target_path;
- GFile *target;
+ g_autoptr (GFile) target = NULL;
target_path = g_file_info_get_symlink_target (file_info);
target = g_file_new_for_path (target_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]