]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
free parser->fields and parser->locals at parser_cleanup
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:55:50 +0000 (15:55 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:55:50 +0000 (15:55 +0200)
parser.c

index fc0cbd0eaa96ccf8b421d6191d97c11006452103..f5502f126ae19aea404398da0ec24184d361b2d0 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2257,6 +2257,8 @@ void parser_cleanup()
         mem_d(parser->globals[i].name);
     }
     MEM_VECTOR_CLEAR(parser, globals);
+    MEM_VECTOR_CLEAR(parser, fields);
+    MEM_VECTOR_CLEAR(parser, locals);
 
     mem_d(parser);
 }