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; + } }