Only cleanup XRenderUtils is we actually created it
Summary: BUG: 386430 Test Plan: kwin_x11 --crashes 20 Got a dialog. Hit cancel. It didn't crash Reviewers: #plasma, graesslin Reviewed By: #plasma, graesslin Subscribers: plasma-devel, kwin, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D8593
This commit is contained in:
parent
ca6459145c
commit
449c93362b
1 changed files with 3 additions and 1 deletions
|
@ -87,8 +87,10 @@ X11StandalonePlatform::~X11StandalonePlatform()
|
||||||
m_openGLFreezeProtectionThread->wait();
|
m_openGLFreezeProtectionThread->wait();
|
||||||
delete m_openGLFreezeProtectionThread;
|
delete m_openGLFreezeProtectionThread;
|
||||||
}
|
}
|
||||||
|
if (isReady()) {
|
||||||
XRenderUtils::cleanup();
|
XRenderUtils::cleanup();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void X11StandalonePlatform::init()
|
void X11StandalonePlatform::init()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue