[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:
parent
59d91b9fd3
commit
0420a98cc0
1 changed files with 1 additions and 1 deletions
|
@ -45,8 +45,8 @@ KDecorationFactory::KDecorationFactory(QObject *parent)
|
|||
|
||||
KDecorationFactory::~KDecorationFactory()
|
||||
{
|
||||
delete d;
|
||||
assert(d->decorations.count() == 0);
|
||||
delete d;
|
||||
}
|
||||
|
||||
void KDecorationFactory::checkRequirements(KDecorationProvides*)
|
||||
|
|
Loading…
Reference in a new issue