From f6b7ddf72b8efed1bee4f7e5ff54e417d4147d05 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 23 Nov 2012 15:03:10 +0100 Subject: [PATCH] Don't delete the ftepp prematurely --- ftepp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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(); } -- 2.39.2