[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
parent
59d91b9fd3
commit
0420a98cc0
|
@ -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 New Issue