Problem with removing textures from cache.

Problem with removing textures from cache.
0.0 0


Hello. Seems, that removeTextureForKey and other methods for removing textures from the cache don’t work correctly.
Textures have been deleted from the cache, but they stay in memory anyway.
Simple application which schedules method with this code:


on its main scene crashes after about 30 seconds.


Problem has been solved. I kept all pointers to the textures in CCMutableArray (for animation) and forgot to delete it (Array) after creating animation.