STL: fix iterator bug
This commit is contained in:
parent
3100bb3ccc
commit
8db35189e0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue