Fixed ticket #398 (valgrind shows error when running testrunner)

http://172.29.29.21/apps/trac/cppcheck/ticket/398
This commit is contained in:
Reijo Tomperi 2009-06-13 00:17:06 +03:00
parent 9ea80b4d74
commit a6d2dceeb3
1 changed files with 2 additions and 3 deletions

View File

@ -1884,15 +1884,14 @@ bool Tokenizer::simplifyQuestionMark()
continue;
end = end->next();
tok = tok->previous();
tok = tok->previous()->previous();
while (tok->next() != end)
{
tok->deleteNext();
}
Token *temp = tok;
tok = tok->next();
temp->deleteThis();
ret = true;
}
else
{