From 35cdb6b0bae84025990b2911198a526688a73717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 1 Jan 2009 16:10:10 +0000 Subject: [PATCH] Memory leak : a little different handling when the callstack gets too big --- checkmemoryleak.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }