[gnome-software/gnome-3-26] folders: Fix a tiny memory leak



commit 25857ed347572a0817610770f73d2d9d13a93d27
Author: Kalev Lember <klember redhat com>
Date:   Tue Jan 2 18:31:48 2018 +0100

    folders: Fix a tiny memory leak

 src/gs-folders.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-folders.c b/src/gs-folders.c
index a05e212..6465e01 100644
--- a/src/gs-folders.c
+++ b/src/gs-folders.c
@@ -169,11 +169,11 @@ load (GsFolders *folders)
 {
        GsFolder *folder;
        guint i, j;
-       gchar *path;
        gboolean translate;
        GHashTableIter iter;
        gchar *app;
        gchar *category;
+       g_autofree gchar *path = NULL;
        g_auto(GStrv) ids = NULL;
 
        folders->folders = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, 
(GDestroyNotify)gs_folder_free);


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