diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 15:16:55 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 15:16:55 +0000 |
commit | 137237efd9af589649c50a09ab6ce1cbb8c47c72 (patch) | |
tree | 6710b9f0e14eedbd48ac528077fbf0d50ded9cbf | |
parent | 5644c2ca4a9a219c3c1e69ec7033eace958a1f0a (diff) | |
download | mana-client-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.gz mana-client-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.bz2 mana-client-137237efd9af589649c50a09ab6ce1cbb8c47c72.tar.xz mana-client-137237efd9af589649c50a09ab6ce1cbb8c47c72.zip |
Plugged memory leak in database reader.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/resources/monsterdb.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -16,6 +16,7 @@ change. * src/gui/inventorywindow.cpp, src/gui/inventorywindow.h: Removed redundant destructor. + * src/resources/monsterdb.cpp: Plugged memory leak in database reader. 2007-10-20 Guillaume Melquiond <guillaume.melquiond@gmail.com> 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; } |