issue #114, CCTMXTiledMap debug

This commit is contained in:
Walzer 2010-09-04 06:51:16 +00:00
parent 21e0bfe46b
commit 88888f7f63
5 changed files with 9 additions and 3 deletions

View File

@ -115,6 +115,7 @@ namespace cocos2d {
{
m_pProperties->clear();
delete m_pProperties;
m_pProperties = NULL;
}
if( m_pAtlasIndexArray )

View File

@ -51,6 +51,7 @@ namespace cocos2d {
{
m_pProperties->clear();
delete m_pProperties;
m_pProperties = NULL;
}
if (m_pObjects)
{
@ -61,6 +62,7 @@ namespace cocos2d {
}
m_pObjects->clear();
delete m_pObjects;
m_pObjects = NULL;
}
}
StringToStringDictionary * CCTMXObjectGroup::objectNamed(const char *objectName)

View File

@ -101,6 +101,7 @@ namespace cocos2d{
{
m_pProperties->clear();
delete m_pProperties;
m_pProperties = NULL;
}
if (m_pTileProperties)
{
@ -115,6 +116,7 @@ namespace cocos2d{
}
m_pTileProperties->clear();
delete m_pTileProperties;
m_pTileProperties = NULL;
}
}

View File

@ -56,6 +56,7 @@ namespace cocos2d {
{
m_pProperties->clear();
delete m_pProperties;
m_pProperties = NULL;
}
if( m_bOwnTiles && m_pTiles )
{
@ -138,6 +139,7 @@ namespace cocos2d {
{
m_pProperties->clear();
delete m_pProperties;
m_pProperties = NULL;
}
if (m_pTileProperties)
{
@ -152,10 +154,8 @@ namespace cocos2d {
}
m_pTileProperties->clear();
delete m_pTileProperties;
m_pTileProperties = NULL;
}
CCX_SAFE_DELETE(m_pProperties);
CCX_SAFE_DELETE(m_pTileProperties);
}
bool CCTMXMapInfo::parseXMLFile(const char *xmlFilename)

View File

@ -72,6 +72,7 @@ namespace cocos2d {
{
m_pPosToAtlasIndex->clear();
delete m_pPosToAtlasIndex;
m_pPosToAtlasIndex = NULL;
}
}
void CCTileMapAtlas::releaseMap()