diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-21 15:21:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-21 15:21:25 +0300 |
commit | ed9b68a3127d994088fed450987a7c63fc4b79bd (patch) | |
tree | 2572443d3fc2ea640448c7d883868e94b6441a9b | |
parent | cb9dd110965c4d0c4dbb671e769220f597d7278f (diff) | |
download | manaverse-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.gz manaverse-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.bz2 manaverse-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.xz manaverse-ed9b68a3127d994088fed450987a7c63fc4b79bd.zip |
Fix leak with default values.
-rw-r--r-- | src/configuration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 2ba53cca4..9d09751e4 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -689,7 +689,7 @@ void ConfigurationObject::initFromXML(const XmlNodePtr parent_node) void Configuration::init(const std::string &filename, const bool useResManager) { - mDefaultsData = nullptr; + cleanDefaults(); XML::Document doc(filename, useResManager); mFilename = filename; mUseResManager = useResManager; |