From: Wolfgang (Blub) Bumiller Date: Fri, 23 Nov 2012 14:03:10 +0000 (+0100) Subject: Don't delete the ftepp prematurely X-Git-Tag: 0.1.9~309 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6b7ddf72b8efed1bee4f7e5ff54e417d4147d05;p=xonotic%2Fgmqcc.git Don't delete the ftepp prematurely --- diff --git a/ftepp.c b/ftepp.c index 6f2bb93..b8fc9f4 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1235,10 +1235,8 @@ bool ftepp_preprocess_file(const char *filename) con_out("failed to open file \"%s\"\n", filename); return false; } - if (!ftepp_preprocess(ftepp)) { - ftepp_delete(ftepp); + if (!ftepp_preprocess(ftepp)) return false; - } return ftepp_preprocess_done(); } @@ -1250,10 +1248,8 @@ bool ftepp_preprocess_string(const char *name, const char *str) con_out("failed to create lexer for string \"%s\"\n", name); return false; } - if (!ftepp_preprocess(ftepp)) { - ftepp_delete(ftepp); + if (!ftepp_preprocess(ftepp)) return false; - } return ftepp_preprocess_done(); }