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