a little more conservative
svn path=/trunk/KDE/kdelibs/; revision=1122507
This commit is contained in:
parent
29503066dd
commit
2213c2e77b
@ -341,9 +341,11 @@ void DataEngine::removeAllSources()
|
||||
QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
emit sourceRemoved(it.key());
|
||||
delete it.value();
|
||||
const QString source = it.key();
|
||||
Plasma::DataContainer *s = it.value();
|
||||
it.remove();
|
||||
emit sourceRemoved(source);
|
||||
delete s;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user