开发者

memory leakage in CCAction in objective-c

开发者 https://www.devze.com 2023-04-12 10:14 出处:网络
I want to cleanup memory. Here is my code [[CCActionManager sharedM开发者_C百科anager] removeAllActionsFromTarget:currentValue];

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

精彩评论

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

关注公众号