开发者

memory leakage in CCAction in objective-c

I want to cleanup memory. Here is my code

   [[CCActionManager sharedM开发者_C百科anager] removeAllActionsFromTarget:currentValue];

But this is holding memory, it is being leakage. What I have to modify to stop action and free memory?


CCNode has a method called stopAllActions

[sprite stopAllActions];

This performs the method you are calling above.

It doesn't leak memory as far as I can see. The object itself is a singleton, it will never get released.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜