release memory on bada

release memory on bada
0.0 0



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.



Maybe you used too many memory. I want to know which bada device your app run on ?


Problem has been solved, in onExit() method of my class i call CCDirector::sharedDirector()->purgeCachedData();
I used S8500 device.