From 9d59f7f5f66da3f0ec0a0eb417d2bbaec34ace82 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Mon, 14 Sep 2015 08:57:51 +0300 Subject: [PATCH] Ticket #3520: free editor macros when closing mc. Signed-off-by: Andrew Borodin --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 9b5a8fa1c..29686ed70 100644 --- a/src/main.c +++ b/src/main.c @@ -470,13 +470,14 @@ main (int argc, char *argv[]) if (macros_list != NULL) { guint i; + for (i = 0; i < macros_list->len; i++) { macros_t *macros; macros = &g_array_index (macros_list, struct macros_t, i); if (macros != NULL && macros->macro != NULL) - (void) g_array_free (macros->macro, FALSE); + (void) g_array_free (macros->macro, TRUE); } (void) g_array_free (macros_list, TRUE); }