Keeping an object member variable

In constructor:

_variable= Node::create();
_variable->retain();

In destructor:

CC_SAFE_RELEASE(_variable);