aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config/Data.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config/Data.cxx b/src/config/Data.cxx
index ae36b7f21..4aae9f7dc 100644
--- a/src/config/Data.cxx
+++ b/src/config/Data.cxx
@@ -24,7 +24,8 @@
void
ConfigData::Clear()
{
- for (auto i : params)
+ for (auto &i : params) {
delete i;
- params.fill(nullptr);
+ i = nullptr;
+ }
}