i create custom layer by ccbi
CCNode nodeLayer =*ccbReaderLayer->readNodeGraphFromFile;
MainMenumenuLayer = static_cast>;
CCScene \scene = CCScene::create;
it’s ok by now
when i replace this scene by another, just like game scene, the MainMenu\ func\ can\ not\ be\ called.
and\ i\ found\ the\ code\
\ if\ )
CCBReader.cpp\ line\ 558
“node”\ is\ the\ instance\ of\ “MainMenu”,\ and\ i\ change\ the\ code\ setRootNode\ like\ this\
\ mRootNode\ =\ pRootNode;
MainMenu func be called correctly.
so i guess*menuLayer has the reference of the mActionManager, and mActionManager has the reference of _menuLayer.
so you can not release any of them in fact.
i want to know if it is reason i can’t release the custom cclayer?
or i need to add some code to release them ?