Object Catching
I'm using Cocos2d and have a some method which return me a animation
-(CCActon*) getAction
{
CCaction act;
..
return act;
}
in my init method i initialize a action property this way self.customAnimation=[self getAction];
The question is, should i catch act in getAction method by retaining or not? now it works without catching:
i can't understand why act not released when getAction ends his work:
|