// EventFrame EventFrame* EventFrame::create() { EventFrame* frame = new EventFrame(); if (frame) { frame->autorelease(); return frame; } CC_SAFE_DELETE(frame); return nullptr; }
// EventFrame EventFrame* EventFrame::create() { EventFrame* frame = new (std::nothrow) EventFrame(); if (frame) { frame->init(); frame->autorelease(); return frame; } CC_SAFE_DELETE(frame); return nullptr; }