Keeping an object member variable
In constructor:
_variable= Node::create(); _variable->retain();
In destructor:
CC_SAFE_RELEASE(_variable);
Everything should be made as simple as possible, but not simpler – Einstein
In constructor:
_variable= Node::create(); _variable->retain();
In destructor:
CC_SAFE_RELEASE(_variable);