Commit a33db8fe authored by Max Kellermann's avatar Max Kellermann

config/Data: assign nullptr during iteration

parent 1c3f5517
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
void void
ConfigData::Clear() ConfigData::Clear()
{ {
for (auto i : params) for (auto &i : params) {
delete i; delete i;
params.fill(nullptr); i = nullptr;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment