Diffusion KWin 6325749f2117

Avoid hypothetical crash if output->init fails

Authored by davidedmundson on Nov 15 2017, 4:07 PM.

Description

Avoid hypothetical crash if output->init fails

Summary:
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: https://phabricator.kde.org/D8779

Details

Committed
davidedmundsonNov 15 2017, 4:09 PM
Reviewer
Plasma
Differential Revision
D8779: Avoid hypothetical crash if output->init fails
Parents
R108:48f7331c4c1d: Merge branch 'Plasma/5.11'
Branches
Unknown
Tags
Unknown