commit d5d08c669283bafa8ea0af4c58a0edd21e38da9d
parent 668f7cb605d31a753986a017050a13edf160d488
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Fri, 3 Aug 2018 14:15:47 +0200
Fix a memory leak when saving last opened folder on exit.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -1674,6 +1674,8 @@ static void exit_claws(MainWindow *mainwin)
if((item = folderview_get_opened_item(mainwin->folderview)) != NULL) {
summary_save_prefs_to_folderitem(
mainwin->summaryview, item);
+ if (prefs_common.last_opened_folder != NULL)
+ g_free(prefs_common.last_opened_folder);
prefs_common.last_opened_folder =
folder_item_get_identifier(item);
}