CheckMemoryLeakInClass: Only show the memory leak message when --all is used

This commit is contained in:
Daniel Marjamäki 2009-06-20 14:17:56 +02:00
parent 453a5cdd47
commit d1d9c9a9c9
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ void CheckMemoryLeakInClass::variable(const char classname[], const Token *tokVa
functionToken = Tokenizer::FindClassFunction(functionToken->next(), classname, "~| %var%", indent_);
}
if (Alloc != CheckMemoryLeak::No && Dealloc == CheckMemoryLeak::No)
if (_settings->_showAll && Alloc != CheckMemoryLeak::No && Dealloc == CheckMemoryLeak::No)
{
MemoryLeak(tokVarname, (std::string(classname) + "::" + varname).c_str(), Alloc, true);
}