[gnome-software] trivial: Fix small memory leaks
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix small memory leaks
- Date: Wed, 24 Aug 2016 02:55:58 +0000 (UTC)
commit 1350bcffa49436a055a48ecc25af3814bf106c56
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Aug 24 14:43:12 2016 +1200
trivial: Fix small memory leaks
src/gs-folders.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-folders.c b/src/gs-folders.c
index 02768e4..0b7b7cb 100644
--- a/src/gs-folders.c
+++ b/src/gs-folders.c
@@ -184,10 +184,10 @@ load (GsFolders *folders)
ids = g_settings_get_strv (folders->settings, "folder-children");
g_object_get (folders->settings, "path", &path, NULL);
for (i = 0; ids[i]; i++) {
- g_autofree gchar **apps = NULL;
- g_autofree gchar **categories = NULL;
+ g_auto(GStrv) apps = NULL;
+ g_auto(GStrv) categories = NULL;
g_autofree gchar *child_path = NULL;
- g_autofree gchar **excluded_apps = NULL;
+ g_auto(GStrv) excluded_apps = NULL;
g_autofree gchar *name = NULL;
g_autoptr(GSettings) settings = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]