diff options
Diffstat (limited to 'src/resources')
-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; } } } |