Guest User

Untitled

a guest
Oct 23rd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void AutoreleasePool::clear()
  2. {
  3. #if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
  4. _isClearing = true;
  5. #endif
  6. std::vector<Ref*> releasings;
  7. releasings.swap(_managedObjectArray);
  8. for (const auto &obj : releasings)
  9. {
  10. obj->release();
  11. }
  12. #if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
  13. _isClearing = false;
  14. #endif
  15. }
Add Comment
Please, Sign In to add comment