Chen Qin wrote:
due to the cause here:http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Reference_Count_and_AutoReleasePool_in_Cocos2d-x
Do I have to manage all the create and retain steps for all the member cocos2d-x variables?
Here’s a way to think of it: If you are assigning a CCObject to a pointer variable, and will have access to the pointer after the next update loop, and it was created with a static creation method (like the one in your example), you should retain it, and release when you are done. So, pretty much the case for most ivars.