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:
parent
e853f5fe07
commit
74af27dc55
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ public:
|
|||
static EffectScreenImpl *get(Output *output);
|
||||
|
||||
private:
|
||||
Output *m_platformOutput;
|
||||
QPointer<Output> m_platformOutput;
|
||||
};
|
||||
|
||||
class EffectWindowImpl : public EffectWindow
|
||||
|
|
Loading…
Reference in a new issue