From: Wolfgang Bumiller Date: Wed, 17 Apr 2013 09:36:45 +0000 (+0200) Subject: don't call ftepp_finish on a freed ftepp struct X-Git-Tag: before-library~49 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=4d394494b6fcbf144975acd3f1d311b63aba598f;p=xonotic%2Fgmqcc.git don't call ftepp_finish on a freed ftepp struct --- diff --git a/main.c b/main.c index d89ed27..0a22b1b 100644 --- a/main.c +++ b/main.c @@ -765,6 +765,7 @@ srcdone: } ftepp_finish(ftepp); + ftepp = NULL; if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY)) { if (!parser_finish(parser, OPTS_OPTION_STR(OPTION_OUTPUT))) { retval = 1; @@ -786,7 +787,8 @@ srcdone: cleanup: util_debug("COM", "cleaning ...\n"); - ftepp_finish(ftepp); + if (ftepp) + ftepp_finish(ftepp); con_close(); vec_free(items); vec_free(ppems);