diff options
-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; } |