diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c index 6fc47da24..146760412 100644 --- a/src/editor/editcmd.c +++ b/src/editor/editcmd.c @@ -1962,7 +1962,10 @@ edit_store_macro_cmd (WEdit * edit) } if (!have_macro) + { mc_config_del_key (macros_config, section_name, skeyname); + g_array_free (macros, TRUE); + } else { macros_t macro;