Skip to content
Commit bfce3c67 authored by David Edmundson's avatar David Edmundson
Browse files

Span wayland objects to lifespan of the QApplication

Summary:
We must release all wayland objects before the QPA connection is closed.

We used to do this explicitly, but this still left an awkward code path
where we could still try to recreate a BlurManager if it's called after
the QApplication is closed.

Instead we can scope all the wayland objects to the QApplication. The
objects themselves were not leaked as public API so this is safe. Calls
after this will simply no-op.

This fixes crashes on tear down of plasma.

BUG: 372789

Test Plan: kquitapp5 plasmashell

Reviewers: #plasma

Subscribers: apol, ngraham, anthonyfieroni, zzag, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D22084
parent 645240f0
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