X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=parser.c;h=a084e2f05ca32130bdc6b70808cb7562225e7f88;hb=6daf47fc5b29404dac619d6b16579c7bf59e8f6a;hp=4b3ac5188bbc1c029cafe60aa363eee471fee150;hpb=16b5f28b40681ba6762f69dca1f3101d7d27c798;p=xonotic%2Fgmqcc.git diff --git a/parser.c b/parser.c index 4b3ac51..a084e2f 100644 --- a/parser.c +++ b/parser.c @@ -2234,12 +2234,14 @@ bool parser_compile(const char *filename) else if (!parser->errors) parseerror(parser, "parse error\n"); lex_close(parser->lex); + parser->lex = NULL; return false; } } } lex_close(parser->lex); + parser->lex = NULL; return !parser->errors; }