From b035165e256e3ec855969c376b6cddef17e1a01b Mon Sep 17 00:00:00 2001 From: Ming Date: Mon, 6 Sep 2010 03:45:02 +0000 Subject: [PATCH] --- cocos2dx/tileMap_parallax_nodes/CCTMXXMLParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2dx/tileMap_parallax_nodes/CCTMXXMLParser.cpp b/cocos2dx/tileMap_parallax_nodes/CCTMXXMLParser.cpp index 2ad4496aba..d59b4c5254 100644 --- a/cocos2dx/tileMap_parallax_nodes/CCTMXXMLParser.cpp +++ b/cocos2dx/tileMap_parallax_nodes/CCTMXXMLParser.cpp @@ -163,6 +163,7 @@ namespace cocos2d { } void CCTMXMapInfo::setLayers(NSMutableArray* var) { + CCX_SAFE_RELEASE(m_pLayers); m_pLayers = var; CCX_SAFE_RETAIN(m_pLayers); } @@ -172,6 +173,7 @@ namespace cocos2d { } void CCTMXMapInfo::setTilesets(NSMutableArray* var) { + CCX_SAFE_RELEASE(m_pTilesets); m_pTilesets = var; CCX_SAFE_RETAIN(m_pTilesets); } @@ -181,6 +183,7 @@ namespace cocos2d { } void CCTMXMapInfo::setObjectGroups(NSMutableArray* var) { + CCX_SAFE_RELEASE(m_pObjectGroups); m_pObjectGroups = var; CCX_SAFE_RETAIN(m_pObjectGroups); }