Ticket #3520: free editor macros when closing mc.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-09-14 08:57:51 +03:00 committed by Slava Zanko
parent 318df7b2e3
commit 9d59f7f5f6

View File

@ -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);
}