[gnome-commander/get_rid_of_xml] Do not free the string array, its memory is used for the GList



commit 4e6da579275e4f62c219b27be11968a5efc66853
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Nov 22 08:35:25 2018 +0100

    Do not free the string array, its memory is used for the GList

 src/gnome-cmd-data.cc | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 3ede34bf..08b2acae 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2638,7 +2638,6 @@ inline GList* GnomeCmdData::load_string_history (const gchar *format, gint size)
 inline GList* GnomeCmdData::get_list_from_gsettings_string_array (GSettings *settings_given, const gchar 
*key)
 {
     GList *list = NULL;
-
     gchar** gsettings_array;
     gsettings_array = g_settings_get_strv (settings_given, key);
 
@@ -2646,7 +2645,6 @@ inline GList* GnomeCmdData::get_list_from_gsettings_string_array (GSettings *set
     {
         list = g_list_append (list, gsettings_array[i]);
     }
-    g_free(gsettings_array);
 
     return list;
 }


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