ParticleFireworks* ParticleFireworks::create() { ParticleFireworks* pRet = new ParticleFireworks(); if (pRet && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
ParticleFireworks* ParticleFireworks::create() { ParticleFireworks* ret = new (std::nothrow) ParticleFireworks(); if (ret && ret->init()) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }