From: Wolfgang (Blub) Bumiller Date: Fri, 23 Nov 2012 18:30:02 +0000 (+0100) Subject: Don't ftepp_warn after destroying the lexer... X-Git-Tag: 0.1.9~306 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85e98e9f5307982b4ec3ee0d00ee7727f9ee7847;p=xonotic%2Fgmqcc.git Don't ftepp_warn after destroying the lexer... --- diff --git a/ftepp.c b/ftepp.c index 9e46733..679214f 100644 --- a/ftepp.c +++ b/ftepp.c @@ -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;