aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/Data.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/Data.cxx')
-rw-r--r--src/config/Data.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/Data.cxx b/src/config/Data.cxx
index 4aae9f7dc..52521e31a 100644
--- a/src/config/Data.cxx
+++ b/src/config/Data.cxx
@@ -20,6 +20,7 @@
#include "config.h"
#include "Data.hxx"
#include "Param.hxx"
+#include "Block.hxx"
void
ConfigData::Clear()
@@ -28,4 +29,9 @@ ConfigData::Clear()
delete i;
i = nullptr;
}
+
+ for (auto &i : blocks) {
+ delete i;
+ i = nullptr;
+ }
}