mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #3520: free editor macros when closing mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
318df7b2e3
commit
9d59f7f5f6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user