diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-23 14:28:39 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-23 14:28:39 +0100 |
commit | cae4571d182fcd64f6bef94552770768f651f30a (patch) | |
tree | 323cfd15267fa12ec752ea0bff73fb99f138b533 /src | |
parent | a10cebb21bdd211716628039b406362f2168c852 (diff) | |
download | mana-cae4571d182fcd64f6bef94552770768f651f30a.tar.gz mana-cae4571d182fcd64f6bef94552770768f651f30a.tar.bz2 mana-cae4571d182fcd64f6bef94552770768f651f30a.tar.xz mana-cae4571d182fcd64f6bef94552770768f651f30a.zip |
Fixed very minor and rarel occuring mem leak in map reader.
Diffstat (limited to 'src')
-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 15fbf68a..d9f15210 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -536,6 +536,8 @@ Tileset *MapReader::readTileset(xmlNodePtr node, { map->addAnimation(tileGID, new TileAnimation(ani)); logger->log("Animation length: %d", ani->getLength()); + } else { + delete ani; } } } |