From a161e4ed3e7296c8536a6ccfefa4219c44b0b40d Mon Sep 17 00:00:00 2001 From: Walzer Date: Mon, 2 Aug 2010 07:44:41 +0000 Subject: [PATCH] issue #18, debug --- cocos2dx/base_nodes/CCNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos2dx/base_nodes/CCNode.cpp b/cocos2dx/base_nodes/CCNode.cpp index 0c8f7ff013..1280c0c001 100644 --- a/cocos2dx/base_nodes/CCNode.cpp +++ b/cocos2dx/base_nodes/CCNode.cpp @@ -609,6 +609,7 @@ void CCNode::reorderChild(CCNode *child, int zOrder) m_pChildren->removeObject(child); insertChild(child, zOrder); + child->release(); } void CCNode::draw()