Memory management

Memory management
0.0 0


Hi, i have some questions about memory management with cocos2d.

  1. When i have to allocate a new scene, how should i do? Have i to use CCScene::node() or new CCScene()?
  2. Can i use delete scene or other methods?
  3. What is the meaning of autorelease?
  4. Suppose i have a new scene. Suppose that i allocate 10 frames (CCSpriteFrame) and add them to the scene.
    When i destroy the scene, the sprites are de-allocate or should i de-allocate manually them?

Generally speaking, where can i find informations about memory management of cocos2d-x?


Please refer to