summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 15:16:55 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 15:16:55 +0000
commit137237efd9af589649c50a09ab6ce1cbb8c47c72 (patch)
tree6710b9f0e14eedbd48ac528077fbf0d50ded9cbf /src/resources/monsterdb.cpp
parent5644c2ca4a9a219c3c1e69ec7033eace958a1f0a (diff)
downloadmana-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.gz
mana-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.bz2
mana-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.xz
mana-137237efd9af589649c50a09ab6ce1cbb8c47c72.zip
Plugged memory leak in database reader.
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index f4864eea..7bdafdc2 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -144,6 +144,8 @@ MonsterDB::load()
mMonsterInfos[XML::getProperty(monsterNode, "id", 0)] = currentInfo;
}
+ xmlFreeDoc(doc);
+
mLoaded = true;
}