config/Data: assign nullptr during iteration
This commit is contained in:
parent
1c3f5517fa
commit
a33db8fe6f
|
@ -24,7 +24,8 @@
|
|||
void
|
||||
ConfigData::Clear()
|
||||
{
|
||||
for (auto i : params)
|
||||
for (auto &i : params) {
|
||||
delete i;
|
||||
params.fill(nullptr);
|
||||
i = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue