Symbol database: Fixed memory leak. ticket: #2468

This commit is contained in:
Robert Reif 2011-01-22 08:36:47 +01:00 committed by Daniel Marjamäki
parent 69eee86ee4
commit 0746c2410a
1 changed files with 6 additions and 0 deletions

View File

@ -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)