when I developed with cocos2d, I found that producting a instance with cocosbuilder will cause memory leak, so I do this:
prodectedNode->stopAllAction();
when I developed with cocos2d, I found that producting a instance with cocosbuilder will cause memory leak, so I do this:
prodectedNode->stopAllAction();
It’s the different thing. The same code but not the same result(memory leak). Anything changed in 2.1?
I will run tests to checkout it.
Did you use xcode to detect memory leak?
thanks minggo. I run it by msvc, not yet xcode, but I think it will get the same result.
I update my code from 2.0.4 to 2.1. In 2.0.4 it works, the code is same, but in 2.1 there is a memory leak problem. Is it a bug?
>
It seems that when closing the m_uReference of CHomeScene is greater than 0.
>
code:
[…]
I am also have this problem, the refrence count more than 1, if I release that node, memory will lost cause it.
I am worked use 2.0.3 and cocosbuilder rc 2.1. btw, my operation system is windows xp, not mac.