How i can release objects such as scenes, layers, sprites correctly?
In init() function of main class of my application i load sprites:
background = CCSprite::spriteWithFile(page->bg);
In onExit() function i call removeAllChildrenWithCleanup(true);
But on seventh scene application crashes due to lack of memory.
Scenes and layers i don’t release because as far as i understand it is autorelease objects.