У меня есть следующий код:
CCParticleExplosion *explosion = [[CCParticleExplosion alloc] init];
explosion.texture = [[CCTextureCache sharedTextureCache] addImage:@"chick.png"];
explosion.position = egg.position;
[explosion setAutoRemoveOnFinish:YES];
[explosion setTotalParticles:10];
[self.layer addChild:explosion];
Я думал, что setAutoRemoveOnFinish автоматически удалит узел взрыва со слоя и выпустит его. Но инструменты xCode говорят, что CCParticleExplosion утечка памяти!
ОБНОВЛЕНИЕ 1:
Решил проблему, используя узел CCParticleExplosion вместо alloc.