summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-26 13:14:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 02:57:14 +0300
commit2364404717e7e7b93daf00f22ee17f72db6e5b27 (patch)
tree566445344abbb3546f0f7b31e0454507a88acd8b /src/resources
parentc05a24d876f261c0865124157b99333ab28d70d2 (diff)
downloadmv-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.gz
mv-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.bz2
mv-2364404717e7e7b93daf00f22ee17f72db6e5b27.tar.xz
mv-2364404717e7e7b93daf00f22ee17f72db6e5b27.zip
Fix memory leak in mapdb.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/mapdb.cpp4
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()