Don't ftepp_warn after destroying the lexer...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-23 19:30:02 +01:00
parent 37eaaa76f9
commit 85e98e9f53

View file

@ -1248,12 +1248,12 @@ static ftepp_t *ftepp;
static bool ftepp_preprocess_done()
{
bool retval = true;
lex_close(ftepp->lex);
ftepp->lex = NULL;
if (vec_size(ftepp->conditions)) {
if (ftepp_warn(ftepp, WARN_MULTIFILE_IF, "#if spanning multiple files, is this intended?"))
retval = false;
}
lex_close(ftepp->lex);
ftepp->lex = NULL;
if (ftepp->itemname) {
mem_d(ftepp->itemname);
ftepp->itemname = NULL;