Hello!
I have some animations in a game I'm currently working on. Some of those animations are CCSequence that are ran from time to time so I decided to declare some properties so that they retain the value. The properties are declared with de @synthesize sentence.
The problem is that all the code that retains a CCSequence leaks memory. I have read the documentation and searched but nothing. I have found an alternative solution to my problem, but I still want to know what is going on here.
Below is some code that ends up leaking memory:
id callFunc = [CCCallFunc actionWithTarget:self selector:@selector(stopEnterAnimation)];
CCAnimate *animation = [CCAnimate actionWithAnimation:[CCAnimation animationWithFrames:[actFrms getNSArray] delay:del] restoreOriginalFrame:NO];
id seq = [CCSequence actions: animation, callFunc, nil];
self.enterAction = seq;
Thanks! :)