mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
set parser->lex to NULL after closing
This commit is contained in:
parent
16b5f28b40
commit
6daf47fc5b
1 changed files with 2 additions and 0 deletions
2
parser.c
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue