Fix a memory leak and a performance issue in checkExecutionPaths()

This commit is contained in:
Pierre Schweitzer 2012-03-31 13:14:24 +02:00
parent 68e6511c87
commit 72c2f400b1
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ void checkExecutionPaths(const SymbolDatabase *symbolDatabase, ExecutionPath *c)
c->end(checks, i->classEnd); c->end(checks, i->classEnd);
// Cleanup // Cleanup
while (checks.size() > 1) { while (!checks.empty()) {
delete checks.back(); delete checks.back();
checks.pop_back(); checks.pop_back();
} }