CCScale9Sprite* CCScale9Sprite::create() { CCScale9Sprite *pReturn = new CCScale9Sprite(); if (pReturn && pReturn->init()) { pReturn->autorelease(); return pReturn; } CC_SAFE_DELETE(pReturn); return NULL; }
CCScale9Sprite* CCScale9Sprite::create() { CCScale9Sprite *pReturn = new CCScale9Sprite(); if (pReturn && pReturn->init()) { CC_SAFE_AUTORELEASE(pReturn); return pReturn; } CC_SAFE_DELETE(pReturn); return NULL; }