summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()