]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
clear all the remaining vectors in the parser
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:59:29 +0000 (15:59 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:59:29 +0000 (15:59 +0200)
parser.c

index f5502f126ae19aea404398da0ec24184d361b2d0..24be6ec1dfe1a5a1c6a4e308d171d2393484582b 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2256,6 +2256,10 @@ void parser_cleanup()
         ast_delete(parser->globals[i].var);
         mem_d(parser->globals[i].name);
     }
+    MEM_VECTOR_CLEAR(parser, functions);
+    MEM_VECTOR_CLEAR(parser, imm_vector);
+    MEM_VECTOR_CLEAR(parser, imm_string);
+    MEM_VECTOR_CLEAR(parser, imm_float);
     MEM_VECTOR_CLEAR(parser, globals);
     MEM_VECTOR_CLEAR(parser, fields);
     MEM_VECTOR_CLEAR(parser, locals);