config/Data: assign nullptr during iteration

This commit is contained in:
Max Kellermann 2015-01-21 22:56:20 +01:00
parent 1c3f5517fa
commit a33db8fe6f
1 changed files with 3 additions and 2 deletions

View File

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