summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-21 15:21:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-21 15:21:25 +0300
commited9b68a3127d994088fed450987a7c63fc4b79bd (patch)
tree2572443d3fc2ea640448c7d883868e94b6441a9b
parentcb9dd110965c4d0c4dbb671e769220f597d7278f (diff)
downloadmv-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.gz
mv-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.bz2
mv-ed9b68a3127d994088fed450987a7c63fc4b79bd.tar.xz
mv-ed9b68a3127d994088fed450987a7c63fc4b79bd.zip
Fix leak with default values.
-rw-r--r--src/configuration.cpp2
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;