那個(gè)場(chǎng)景指針不delete的嗎?
SceneManager * manager = new SceneManager();
manager->createMainMenuScene();
director->runWithScene(manager->menuScene);
這個(gè)從堆上初始化的對(duì)象指針不用delete的嗎?
會(huì)不會(huì)造成內(nèi)存泄漏呢?
SceneManager * manager = new SceneManager();
manager->createMainMenuScene();
director->runWithScene(manager->menuScene);
這個(gè)從堆上初始化的對(duì)象指針不用delete的嗎?
會(huì)不會(huì)造成內(nèi)存泄漏呢?
舉報(bào)