EaseBezierAction* EaseBezierAction::create(cocos2d::ActionInterval* action) { EaseBezierAction *ret = new (std::nothrow) EaseBezierAction(); if (ret && ret->initWithAction(action)) { ret->autorelease(); return ret; } delete ret; return nullptr; }
EaseBezierAction* EaseBezierAction::create(cocos2d::ActionInterval* action) { EaseBezierAction *ret = new (std::nothrow) EaseBezierAction(); if (ret) { if (ret->initWithAction(action)) { ret->autorelease(); } else { CC_SAFE_RELEASE_NULL(ret); } } return ret; }