From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 14:20:23 +0000 (+0200) Subject: Revert "delete ast_members from parser->locals when they were unused" X-Git-Tag: 0.1-rc1~212 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4587e5667ac0f8f30fd0a6bde4ec0dd4bc96a54;p=xonotic%2Fgmqcc.git Revert "delete ast_members from parser->locals when they were unused" This reverts commit cdeffb6de9b92b7c498380d802d3250ef9ba73aa. --- diff --git a/parser.c b/parser.c index 2df00cd..1ee5cad 100644 --- a/parser.c +++ b/parser.c @@ -1668,11 +1668,6 @@ static void parser_pop_local(parser_t *parser) { parser->locals_count--; mem_d(parser->locals[parser->locals_count].name); - if (!ast_usecount(parser->locals[parser->locals_count].var) && - ast_istype(parser->locals[parser->locals_count].var, ast_member)) - { - ast_delete(parser->locals[parser->locals_count].var); - } } static ast_block* parser_parse_block(parser_t *parser)