修复了即使退出场景也不释放Object的bug

This commit is contained in:
Nomango 2017-10-05 01:14:45 +08:00
parent cca2dfee2c
commit 34ab072229
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ void Scene::clearAllChildren()
// 所有节点的引用计数减一
for (auto child : m_vChildren)
{
child->autoRelease();
child->release();
}
// 清空储存节点的容器