diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-23 14:28:39 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-23 08:59:37 -0700 |
commit | e36a6085d16a0269c094e40471bff8ca81857374 (patch) | |
tree | e672ba6250196f4aae1c1f89b59664a3710a8ca4 /src/resources/mapreader.cpp | |
parent | 427f1319dc2890dfb2e5ed189d47cb16fa450554 (diff) | |
download | mana-e36a6085d16a0269c094e40471bff8ca81857374.tar.gz mana-e36a6085d16a0269c094e40471bff8ca81857374.tar.bz2 mana-e36a6085d16a0269c094e40471bff8ca81857374.tar.xz mana-e36a6085d16a0269c094e40471bff8ca81857374.zip |
Fixed very minor and rarel occuring mem leak in map reader.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 0082a024..9dd1dc62 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -539,6 +539,8 @@ Tileset *MapReader::readTileset(xmlNodePtr node, { map->addAnimation(tileGID, new TileAnimation(ani)); logger->log("Animation length: %d", ani->getLength()); + } else { + delete ani; } } } |