mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
params should be deleted, not unref()d
This commit is contained in:
parent
c3df4edebd
commit
69d93409e5
1 changed files with 1 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -80,7 +80,7 @@ void ast_value_delete(ast_value* self)
|
|||
if (self->name)
|
||||
mem_d((void*)self->name);
|
||||
for (i = 0; i < self->params_count; ++i)
|
||||
ast_unref(self->params[i]);
|
||||
ast_value_delete(self->params[i]); /* delete, the ast_function is expected to die first */
|
||||
MEM_VECTOR_CLEAR(self, params);
|
||||
if (self->next) /* delete, not unref, types are always copied */
|
||||
ast_delete(self->next);
|
||||
|
|
Loading…
Reference in a new issue