set parser->lex to NULL after closing

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 16:42:17 +02:00
parent 16b5f28b40
commit 6daf47fc5b

View file

@ -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;
}