Commit 449c9336 authored by David Edmundson's avatar David Edmundson

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
parent ca645914
......@@ -87,7 +87,9 @@ X11StandalonePlatform::~X11StandalonePlatform()
m_openGLFreezeProtectionThread->wait();
delete m_openGLFreezeProtectionThread;
}
XRenderUtils::cleanup();
if (isReady()) {
XRenderUtils::cleanup();
}
}
void X11StandalonePlatform::init()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment