Commit 6325749f authored by David Edmundson's avatar David Edmundson

Avoid hypothetical crash if output->init fails

con->setOutput and crtc->setOutput  is called in Output::~Output so this
is doing it twice redundantly.

More importantly Output::~Output calls crtc->blank(), which means we
need a valid CRTC object there.

Test Plan: Compiles

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: bshah, plasma-devel, kwin, #kwin

Tags: #kwin

Differential Revision:
parent 48f7331c
......@@ -455,8 +455,6 @@ void DrmBackend::updateOutputs()
if (!output->init( {
qCWarning(KWIN_DRM) << "Failed to create output for connector " << con->id();
delete output;
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