forked from qt-creator/qt-creator
Valgrind: Fix memory leak
Change-Id: Ie2e3104a71dcb0bff6fff7d2989517cc3ca5de2b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9a1c382273
commit
10b4936038
@@ -455,8 +455,8 @@ void Parser::Private::parseCostItem(const char *begin, const char *end)
|
||||
bool ok;
|
||||
const char *current = begin;
|
||||
|
||||
CostItem *costItem = new CostItem(data);
|
||||
QTC_ASSERT(currentDifferingFile == -1 || currentDifferingFile != currentFunction->fileId(), return);
|
||||
CostItem *costItem = new CostItem(data);
|
||||
costItem->setDifferingFile(currentDifferingFile);
|
||||
FunctionCall *call = 0;
|
||||
if (isParsingFunctionCall) {
|
||||
|
Reference in New Issue
Block a user