mirror of https://github.com/axmolengine/axmol.git
parent
976c52ae02
commit
6bd7d28e06
|
@ -374,7 +374,7 @@ CCMultiplexLayer * CCMultiplexLayer::layerWithLayers(CCLayer * layer, ...)
|
|||
bool CCMultiplexLayer::initWithLayers(CCLayer *layer, va_list params)
|
||||
{
|
||||
m_pLayers = new NSMutableArray<CCLayer*>(5);
|
||||
m_pLayers->retain();
|
||||
//m_pLayers->retain();
|
||||
|
||||
m_pLayers->addObject(layer);
|
||||
|
||||
|
|
|
@ -426,5 +426,10 @@ void MenuTestScene::runThisTest()
|
|||
CCMultiplexLayer* layer = CCMultiplexLayer::layerWithLayers(pLayer1, pLayer2, pLayer3, pLayer4, NULL);
|
||||
addChild(layer, 0);
|
||||
|
||||
pLayer1->release();
|
||||
pLayer2->release();
|
||||
pLayer3->release();
|
||||
pLayer4->release();
|
||||
|
||||
CCDirector::getSharedDirector()->replaceScene(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue