From: Wolfgang (Blub) Bumiller <blub@speed.at>
Date: Thu, 15 Nov 2012 20:40:32 +0000 (+0100)
Subject: Free the 3 actual vectors, not the first 3 times
X-Git-Tag: 0.1~5
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1640f177fb64a3111e315e53ad112561f0105fe;p=xonotic%2Fgmqcc.git

Free the 3 actual vectors, not the first 3 times
---

diff --git a/ast.c b/ast.c
index dfed367..9e59ca9 100644
--- a/ast.c
+++ b/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);
 }