Skip to content
Snippets Groups Projects
Commit 26190952 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 8ad626b7
No related branches found
No related tags found
No related merge requests found
......@@ -1013,4 +1013,11 @@ void free_xtrn_cfg(scfg_t* cfg)
FREE_AND_NULL(cfg->natvpgm);
}
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