From: Wolfgang Bumiller Date: Sun, 29 Apr 2012 17:45:14 +0000 (+0200) Subject: params should be deleted, not unref()d X-Git-Tag: 0.1-rc1~549 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=69d93409e5f88864e38b5c3ab5e211096b541b1a;p=xonotic%2Fgmqcc.git params should be deleted, not unref()d --- diff --git a/ast.c b/ast.c index faba425..3474dfc 100644 --- a/ast.c +++ b/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);