diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-26 13:14:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 02:57:14 +0300 |
commit | 2364404717e7e7b93daf00f22ee17f72db6e5b27 (patch) | |
tree | 566445344abbb3546f0f7b31e0454507a88acd8b /src/resources/mapdb.cpp | |
parent | c05a24d876f261c0865124157b99333ab28d70d2 (diff) | |
download | manaplus-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.gz manaplus-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.bz2 manaplus-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.xz manaplus-2364404717e7e7b93daf00f22ee17f72db6e5b27.zip |
Fix memory leak in mapdb.
Diffstat (limited to 'src/resources/mapdb.cpp')
-rw-r--r-- | src/resources/mapdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapdb.cpp b/src/resources/mapdb.cpp index 84b5f6cf3..1fb12bf11 100644 --- a/src/resources/mapdb.cpp +++ b/src/resources/mapdb.cpp @@ -48,6 +48,7 @@ void MapDB::load() loadRemap(); loadInfo(); + mLoaded = true; } void MapDB::loadRemap() @@ -79,8 +80,6 @@ void MapDB::loadRemap() } delete doc; - - mLoaded = true; } void MapDB::readMap(XmlNodePtr node) @@ -135,6 +134,7 @@ void MapDB::loadInfo() else if (xmlNameEqual(node, "atlas")) readAtlas(node); } + delete doc; } void MapDB::unload() |