Memory problem on CCTextureCache and sprites.

Hi Everyone,

I have a problem with the memory in my project.

I’m using 5 CSprites with the next line:

sprite1->setTexture(CCTextureCache::sharedTextureCache()->addImage"image1.png");

And for example in my scene with the profiler I have 40M in running time.

When I change of scene calling the OnExit function have:

CCTextureCache::sharedTextureCache()->removeUnusedTextures();

But when I change the scene replacing the previews. the memory never decrease and when I enter again to the preview scene the memory increase because the 5 sprites that I create.

Im triying to use:
sprite1->removeAllChildrenWithCleanup
sprite1 = null;

CCTextureCache::sharedTextureCache()->removeAllTextures();

But my memory continue in 40M.

Anyone have an idea?