diff --git a/checkmemoryleak.cpp b/checkmemoryleak.cpp index f67c5055b..bc3bff8a5 100644 --- a/checkmemoryleak.cpp +++ b/checkmemoryleak.cpp @@ -213,7 +213,7 @@ const char * CheckMemoryLeakClass::call_func( const TOKEN *tok, std::list 2 ) - return "dealloc"; + return "dealloc_"; const char *funcname = tok->aaaa(); for ( std::list::const_iterator it = callstack.begin(); it != callstack.end(); ++it ) @@ -1102,7 +1102,7 @@ void CheckMemoryLeakClass::CheckMemoryLeak_CheckScope( const TOKEN *Tok1, const tok2->str("use"); else if (tok2->str() == "&use2") tok2->str(";"); - else if (tok2->str() == "recursive") + else if (tok2->str() == "recursive" || tok2->str() == "dealloc_") tok2->str("dealloc"); }