[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.
icc-effect-5.14.5
Martin Gräßlin 2014-03-03 14:51:53 +01:00
parent 59d91b9fd3
commit 0420a98cc0
1 changed files with 1 additions and 1 deletions

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*)