mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-16 06:11:15 +00:00
[cvar] Ensure enum cvars tables don't get double freed
Currently doesn't happen, but all it takes is for two or more cvars to use the same enum type.
This commit is contained in:
parent
004ebd40b8
commit
24ac95ef6e
1 changed files with 1 additions and 0 deletions
|
@ -774,6 +774,7 @@ cvar_free_memory (void *ele, void *data)
|
|||
exprenum_t *enm = cvar->value.type->data;
|
||||
if (enm->symtab && enm->symtab->tab) {
|
||||
Hash_DelTable (enm->symtab->tab);
|
||||
enm->symtab->tab = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue