Fix crash due to dangling reference
ClosedPublic

Authored by fvogt on May 8 2019, 5:10 PM.

Details

Summary

Returning a reference to a value on the stack is broken.
This caused kwin_wayland to crash in openQA with a nullptr deref.

BUG: 407199

Test Plan

Only build tested.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fvogt created this revision.May 8 2019, 5:10 PM
Restricted Application added a project: KWin. · View Herald TranscriptMay 8 2019, 5:10 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
fvogt requested review of this revision.May 8 2019, 5:10 PM
zzag accepted this revision.May 8 2019, 5:13 PM
This revision is now accepted and ready to land.May 8 2019, 5:13 PM
This revision was automatically updated to reflect the committed changes.