mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[cvar] Delete enum symbol tables on shutdown
More memory leaks. Might need to make some soup.
This commit is contained in:
parent
d8466b6cca
commit
3d65376f87
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue