修复BatchNode清空所有节点时,未销毁子节点的bug
This commit is contained in:
parent
69ac58b46a
commit
4462834c3c
|
|
@ -104,6 +104,7 @@ void BatchNode::clearAllChildren()
|
|||
// 所有节点的引用计数减一
|
||||
for (auto child : m_vChildren)
|
||||
{
|
||||
child->autoRelease();
|
||||
child->release();
|
||||
}
|
||||
// 清空储存节点的容器
|
||||
|
|
|
|||
Loading…
Reference in New Issue