From 4462834c3c1c435bd4e1346cf7b9f5fad4125417 Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Thu, 5 Oct 2017 11:30:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBatchNode=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=8A=82=E7=82=B9=E6=97=B6=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E9=94=80=E6=AF=81=E5=AD=90=E8=8A=82=E7=82=B9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Easy2D/Object/BatchNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Easy2D/Object/BatchNode.cpp b/Easy2D/Object/BatchNode.cpp index 2bdbe0d3..316c40b8 100644 --- a/Easy2D/Object/BatchNode.cpp +++ b/Easy2D/Object/BatchNode.cpp @@ -104,6 +104,7 @@ void BatchNode::clearAllChildren() // 所有节点的引用计数减一 for (auto child : m_vChildren) { + child->autoRelease(); child->release(); } // 清空储存节点的容器