Fix a memory leak and a performance issue in checkExecutionPaths()
This commit is contained in:
parent
68e6511c87
commit
72c2f400b1
|
@ -471,7 +471,7 @@ void checkExecutionPaths(const SymbolDatabase *symbolDatabase, ExecutionPath *c)
|
|||
c->end(checks, i->classEnd);
|
||||
|
||||
// Cleanup
|
||||
while (checks.size() > 1) {
|
||||
while (!checks.empty()) {
|
||||
delete checks.back();
|
||||
checks.pop_back();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue