[gnome-commander/GSettings] Frees cmdline_history before loading new list
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings] Frees cmdline_history before loading new list
- Date: Sat, 30 Jul 2016 10:33:46 +0000 (UTC)
commit ac3f623a3a6ab2cedde8a63393dc065a0d225a65
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Jul 30 12:32:45 2016 +0200
Frees cmdline_history before loading new list
src/gnome-cmd-data.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 822f724..3924d08 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2483,6 +2483,8 @@ inline GList* GnomeCmdData::get_list_from_gsettings_string_array (GSettings *set
inline void GnomeCmdData::load_cmdline_history()
{
+ g_list_free(cmdline_history);
+
cmdline_history = get_list_from_gsettings_string_array (options.gcmd_settings->general,
GCMD_SETTINGS_CMDLINE_HISTORY);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]