[cvar] Delete enum symbol tables on shutdown

More memory leaks. Might need to make some soup.
This commit is contained in:
Bill Currie 2023-03-05 17:07:56 +09:00
parent d8466b6cca
commit 3d65376f87

View file

@ -770,6 +770,11 @@ cvar_free_memory (void *ele, void *data)
char **str_value = cvar->value.value;
free (*str_value);
*str_value = 0;
} else if (cvar->value.type->data) {
exprenum_t *enm = cvar->value.type->data;
if (enm->symtab && enm->symtab->tab) {
Hash_DelTable (enm->symtab->tab);
}
}
if (cvar->listeners) {