Problem with removing textures from cache.

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:

CCTextureCache::sharedTextureCache()->addImage(path);
CCTextureCache::sharedTextureCache()->removeTextureForKey(path);

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.