Actually the code is very long.
Here's a bit.
I initialize my Block like this in init:
Block *block = [CCSprite spriteWithFile:file];
block.scale = 0.74f;
self.tag = 7;
[GameManager sharedGameManager].emptyBlockCount--;
[self addChild:block];
return self;
In Main Layer i do this:
waitBlock = [Block node];
waitBlock.position = ccp(273.0f, 437.0f);
waitBlock.scale = 1.21f;
waitBlock.rotation = 4;
[self addChild:waitBlock];
After 7-10 minutes of playing, console says cocos2d: Couldn't add image:imageFile.png in CCTextureCache
although it is a valid reference to a texture.
I tried using removeUnusedTextures, removeAllTextures and even purgeSharedTextureCache but nothing seems to work.
Looks like a memory issue.
Any ideas???