bus error fix when quitting. spotted on openbsd while

working ok on Linux and others.
This commit is contained in:
David Carlier 2017-12-31 23:59:53 +00:00 committed by Daniel Gibson
parent 4d1b4fa88c
commit da5d36a7fd

View file

@ -619,11 +619,11 @@ Cvar_Fini(void)
for (var = cvar_vars; var;)
{
cvar_t *c = var;
cvar_t *c = var->next;
Z_Free(var->string);
Z_Free(var->name);
Z_Free(var);
var = c->next;
var = c;
}
Cmd_RemoveCommand("cvarlist");