diff --git a/private/containment_p.h b/private/containment_p.h index 4025bf4d3..75a6f807e 100644 --- a/private/containment_p.h +++ b/private/containment_p.h @@ -67,10 +67,14 @@ public: ~ContainmentPrivate() { - qDeleteAll(applets); + // qDeleteAll is broken with Qt4.8, delete it by hand + while (!applets.isEmpty()) { + delete applets.first(); + } applets.clear(); qDeleteAll(dropMenus); + dropMenus.clear(); } void createToolBox();