Exemplo n.º 1
0
CCComponent* CCComponent::create(void)
{
    CCComponent * pRet = new CCComponent();
    if (pRet != NULL && pRet->init())
    {
        CC_SAFE_AUTORELEASE(pRet);
    }
    else
    {
        CC_SAFE_DELETE(pRet);
    }
    return pRet;
}
Exemplo n.º 2
0
CCComponent* CCComponent::create(void)
{
    CCComponent * pRet = new CCComponent();
    if (pRet != NULL && pRet->init())
    {
        pRet->autorelease();
    }
    else
    {
        CC_SAFE_DELETE(pRet);
    }
	return pRet;
}