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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue