diff --git a/cocos2dx/cocoa/CCSet.cpp b/cocos2dx/cocoa/CCSet.cpp index a2cccff017..c3c24e0e5e 100644 --- a/cocos2dx/cocoa/CCSet.cpp +++ b/cocos2dx/cocoa/CCSet.cpp @@ -121,9 +121,9 @@ void Set::removeAllObjects() tmp = it; ++tmp; - Object * pObject = *it; + Object * obj = *it; _set->erase(it); - CC_SAFE_RELEASE(pObject); + CC_SAFE_RELEASE(obj); it = tmp; } }