From 97e4bd53d316ef6096e0aef4f8a78c8a61cd9ca8 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sat, 3 Dec 2011 21:22:45 +0100 Subject: [PATCH] don't delete the kns3 dialog on application shutdown BUG:288153 --- private/packages.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/private/packages.cpp b/private/packages.cpp index 08016db77..f85d5f724 100644 --- a/private/packages.cpp +++ b/private/packages.cpp @@ -22,6 +22,7 @@ #include #include // FLT_MAX +#include #include #include @@ -82,7 +83,10 @@ PlasmoidPackage::PlasmoidPackage(QObject *parent) PlasmoidPackage::~PlasmoidPackage() { #ifndef PLASMA_NO_KNEWSTUFF - delete m_knsDialog.data(); + if (!QCoreApplication::closingDown()) { + // let it "leak" on application close as this causes crashes otherwise, BUG 288153 + delete m_knsDialog.data(); + } #endif }