mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Free the 3 actual vectors, not the first 3 times
This commit is contained in:
parent
4517072af4
commit
d1640f177f
1 changed files with 2 additions and 2 deletions
4
ast.c
4
ast.c
|
@ -809,10 +809,10 @@ void ast_block_delete(ast_block *self)
|
|||
vec_free(self->exprs);
|
||||
for (i = 0; i < vec_size(self->locals); ++i)
|
||||
ast_delete(self->locals[i]);
|
||||
vec_free(self->exprs);
|
||||
vec_free(self->locals);
|
||||
for (i = 0; i < vec_size(self->collect); ++i)
|
||||
ast_delete(self->collect[i]);
|
||||
vec_free(self->exprs);
|
||||
vec_free(self->collect);
|
||||
ast_expression_delete((ast_expression*)self);
|
||||
mem_d(self);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue