Skip to content
Snippets Groups Projects
Commit 4d1a66da authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix another small memleak reported by valgrind: global hot keys

Not a huge deal, but there it is (or was).
parent 22f3d102
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4178 failed
...@@ -1013,4 +1013,11 @@ void free_xtrn_cfg(scfg_t* cfg) ...@@ -1013,4 +1013,11 @@ void free_xtrn_cfg(scfg_t* cfg)
FREE_AND_NULL(cfg->natvpgm); FREE_AND_NULL(cfg->natvpgm);
} }
cfg->total_natvpgms=0; cfg->total_natvpgms=0;
if(cfg->hotkey != NULL) {
for(i=0; i < cfg->total_hotkeys; ++i)
free(cfg->hotkey[i]);
FREE_AND_NULL(cfg->hotkey);
}
cfg->total_hotkeys = 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment