[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.
This commit is contained in:
Martin Gräßlin 2014-03-03 14:51:53 +01:00
parent 59d91b9fd3
commit 0420a98cc0

View file

@ -45,8 +45,8 @@ KDecorationFactory::KDecorationFactory(QObject *parent)
KDecorationFactory::~KDecorationFactory()
{
delete d;
assert(d->decorations.count() == 0);
delete d;
}
void KDecorationFactory::checkRequirements(KDecorationProvides*)