crash--
weird behavior: qdeleteall crashes, deleting items one by one doesn't
This commit is contained in:
parent
3f78d130a5
commit
7f4e72fb35
@ -58,7 +58,11 @@ ContainmentPrivate::ContainmentPrivate(Containment *c):
|
||||
|
||||
Plasma::ContainmentPrivate::~ContainmentPrivate()
|
||||
{
|
||||
qDeleteAll(applets);
|
||||
//FIXME: For some reason, qDeleteAll crashes, while deleting applets one by one is fine
|
||||
foreach (Plasma::Applet *applet, applets) {
|
||||
delete applet;
|
||||
}
|
||||
//qDeleteAll(applets);
|
||||
applets.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user