1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

Fixed some stupid leaks & crashes, tool should be pretty stable now.

Also bumped the warning level up to 4 in the VS project settings & fixed some warnings.
This commit is contained in:
2015-11-17 12:21:56 +11:00
parent d152c60b44
commit e01f1ee205
3 changed files with 8 additions and 7 deletions

View File

@@ -144,6 +144,7 @@ void CTmxReader::ReadLayer ( rapidxml::xml_node<>* a_xNode )
pTileDat = new uint32_t[iWidth * iHeight];
if ( !DecodeMap ( pTileDat, iWidth * iHeight * sizeof(uint32_t), std::string ( xData->value () ) ) )
{
delete[] pTileDat;
pTileDat = nullptr;
}
}