Memory leaks: bug fix. don't skip '}' by accident

This commit is contained in:
Daniel Marjamäki 2011-01-29 18:46:55 +01:00
parent b9a0e10b9a
commit 0624e418f1
1 changed files with 1 additions and 1 deletions

View File

@ -921,7 +921,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
} }
if (tok2->varId() == varid || if (tok2->varId() == varid ||
tok2->str() == ":" || tok2->str() == "{") tok2->str() == ":" || tok2->str() == "{" || tok2->str() == "}")
{ {
break; break;
} }