From a4b887f21a582c5e77fe875b82799944dafbdb33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 18 Jul 2010 12:44:55 +0200 Subject: [PATCH] Fixed #1843 (Tokenizer::createTokens() calls std::exit(0)) --- lib/tokenize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index fbb8eea11..0d8dce1aa 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -360,7 +360,8 @@ void Tokenizer::createTokens(std::istream &code) if (lineNumbers.empty() || fileIndexes.empty()) { std::cerr << "####### Preprocessor bug! #######\n"; - std::exit(0); + deallocateTokens(); + return; } lineno = lineNumbers.back();