From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 13:51:53 +0000 (+0200) Subject: Delete fields in parser_cleanup X-Git-Tag: 0.1-rc1~222 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=483ce89d78ce6e13ec217ba8caa503e2bb722bc4;p=xonotic%2Fgmqcc.git Delete fields in parser_cleanup --- diff --git a/parser.c b/parser.c index 1530d39..fc0cbd0 100644 --- a/parser.c +++ b/parser.c @@ -2248,6 +2248,10 @@ void parser_cleanup() for (i = 0; i < parser->imm_float_count; ++i) { ast_delete(parser->imm_float[i]); } + for (i = 0; i < parser->fields_count; ++i) { + ast_delete(parser->fields[i].var); + mem_d(parser->fields[i].name); + } for (i = 0; i < parser->globals_count; ++i) { ast_delete(parser->globals[i].var); mem_d(parser->globals[i].name);