summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-28 20:55:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-28 20:55:17 +0300
commit79e8799a0782a018833ec0003bb0e5086508da07 (patch)
treedd810411b64ac009d9965d79919a43d8c9e095f4 /src/resources
parent6d709b0c218791fdacdbd8b234a1301a135aeb33 (diff)
downloadmanaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.gz
manaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.bz2
manaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.xz
manaverse-79e8799a0782a018833ec0003bb0e5086508da07.zip
fix some leaks issues.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/mapreader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index e053e0035..4da901b09 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -214,6 +214,7 @@ void MapReader::addLayerToList(const std::string &fileName)
mKnownLayers[name] = childNode;
mKnownDocs.insert(doc);
}
+ delete doc;
}
Map *MapReader::readMap(const std::string &restrict filename,