Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AutoreleasePool::clear()
- {
- #if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
- _isClearing = true;
- #endif
- std::vector<Ref*> releasings;
- releasings.swap(_managedObjectArray);
- for (const auto &obj : releasings)
- {
- obj->release();
- }
- #if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
- _isClearing = false;
- #endif
- }
Add Comment
Please, Sign In to add comment