Symbol database: Fixed memory leak. ticket: #2468
This commit is contained in:
parent
69eee86ee4
commit
0746c2410a
|
@ -842,6 +842,12 @@ void SymbolDatabase::addNewFunction(Scope **scope, const Token **tok)
|
|||
|
||||
*tok = tok1;
|
||||
}
|
||||
else
|
||||
{
|
||||
delete new_scope;
|
||||
*scope = NULL;
|
||||
*tok = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
const Token *SymbolDatabase::initBaseInfo(Scope *scope, const Token *tok)
|
||||
|
|
Loading…
Reference in New Issue