STL: fix iterator bug

This commit is contained in:
Daniel Marjamäki 2009-12-06 21:21:27 +01:00
parent 3100bb3ccc
commit 8db35189e0
1 changed files with 2 additions and 0 deletions

View File

@ -1545,6 +1545,8 @@ static const Token *checkExecutionPaths(const Token *tok, std::list<ExecutionPat
delete *it;
it = checks.erase(it);
}
if (it == checks.end())
break;
}
if (checks.empty())
return 0;