From c1f85bac0eb9bd58eb638b70bfcf73f9283a0899 Mon Sep 17 00:00:00 2001 From: cpascal Date: Wed, 5 Nov 2014 16:23:25 +0900 Subject: [PATCH] Fixed compile error with CC_REF_LEAK_DETECTION --- cocos/base/CCRef.cpp | 2 +- cocos/base/CCRef.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/base/CCRef.cpp b/cocos/base/CCRef.cpp index 59478a4eec..91e30935e9 100644 --- a/cocos/base/CCRef.cpp +++ b/cocos/base/CCRef.cpp @@ -189,7 +189,7 @@ static void untrackRef(Ref* ref) __refAllocationList.erase(iter); } -#endif // #if CC_USE_MEM_LEAK_DETECTION +#endif // #if CC_REF_LEAK_DETECTION NS_CC_END diff --git a/cocos/base/CCRef.h b/cocos/base/CCRef.h index cfb1971177..f0f2820ed9 100644 --- a/cocos/base/CCRef.h +++ b/cocos/base/CCRef.h @@ -146,8 +146,8 @@ public: void* _scriptObject; #endif - // Memory leak diagnostic data (only included when CC_USE_MEM_LEAK_DETECTION is defined and its value isn't zero) -#if CC_USE_MEM_LEAK_DETECTION + // Memory leak diagnostic data (only included when CC_REF_LEAK_DETECTION is defined and its value isn't zero) +#if CC_REF_LEAK_DETECTION public: static void printLeaks(); #endif