I'm creating a game on iphone with Cocos2D. I do know that I can trust Cocos2D's memory management to free up the memory like CCScene,CCLayer that will be effectively freed when changing scene.
But when I have my custom class like XYPoint (contains 2 NSNumber*, which is X and Y) how can I do to have it free the memory along with CCScene/CClayer it belongs? (sounds like autorelease, but in Cocos2D I can't find any pool drain like ordinary cocoa touch program.)
(now I can only think about add a XYPoint's release on scene's 'after transition' method... )
thanks!