From ed9b68a3127d994088fed450987a7c63fc4b79bd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Dec 2012 15:21:25 +0300 Subject: Fix leak with default values. --- src/configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2