Add missing QPointer

The Compositor is destroyed after the Workspace, so the placeholder has
shorter lifespan. We need to guard the destructor of EffectScreenImpl
from accessing a dangling pointer. For what it's worth, the destructor
of EffectScreenImpl was written with QPointer in mind, but it was never
added.
This commit is contained in:
Vlad Zahorodnii 2022-09-15 23:18:41 +03:00
parent e853f5fe07
commit 74af27dc55

View file

@ -374,7 +374,7 @@ public:
static EffectScreenImpl *get(Output *output);
private:
Output *m_platformOutput;
QPointer<Output> m_platformOutput;
};
class EffectWindowImpl : public EffectWindow