remove the iterator after accessing it
This commit is contained in:
parent
ea1f079c34
commit
523ef55a7b
@ -302,10 +302,10 @@ void DataEngine::removeAllSources()
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
Plasma::DataContainer *s = it.value();
|
||||
it.remove();
|
||||
s->disconnect(this);
|
||||
s->deleteLater();
|
||||
emit sourceRemoved(it.key());
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user