mirror of https://github.com/axmolengine/axmol.git
Minor changes.
This commit is contained in:
parent
eee8ba7586
commit
67d9b8ea25
|
@ -144,12 +144,10 @@ CCSprite* CCSprite::node()
|
||||||
if (pSprite && pSprite->init())
|
if (pSprite && pSprite->init())
|
||||||
{
|
{
|
||||||
pSprite->autorelease();
|
pSprite->autorelease();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CC_SAFE_DELETE(pSprite);
|
|
||||||
}
|
|
||||||
return pSprite;
|
return pSprite;
|
||||||
|
}
|
||||||
|
CC_SAFE_DELETE(pSprite);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CCSprite::init(void)
|
bool CCSprite::init(void)
|
||||||
|
|
Loading…
Reference in New Issue