summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-23 14:28:39 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-23 14:28:39 +0100
commitcae4571d182fcd64f6bef94552770768f651f30a (patch)
tree323cfd15267fa12ec752ea0bff73fb99f138b533 /src/resources
parenta10cebb21bdd211716628039b406362f2168c852 (diff)
downloadmana-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/resources')
-rw-r--r--src/resources/mapreader.cpp2
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;
}
}
}