From 0420a98cc0465df2bb5b46987df305b8115a199a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 3 Mar 2014 14:51:53 +0100 Subject: [PATCH] [kwin] Fix crash on restart in kdecorationfactory The assert which accesses the d-ptr should be called before we delete the d-ptr otherwise we obviously crash. --- libkdecorations/kdecorationfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkdecorations/kdecorationfactory.cpp b/libkdecorations/kdecorationfactory.cpp index b5b4aa71cf..0db2703abc 100644 --- a/libkdecorations/kdecorationfactory.cpp +++ b/libkdecorations/kdecorationfactory.cpp @@ -45,8 +45,8 @@ KDecorationFactory::KDecorationFactory(QObject *parent) KDecorationFactory::~KDecorationFactory() { - delete d; assert(d->decorations.count() == 0); + delete d; } void KDecorationFactory::checkRequirements(KDecorationProvides*)