Commit 9bc1f3bc authored by David Edmundson's avatar David Edmundson

Fix memory leak of DesktopViews on shutdown

DesktopView's constructor calls PlasmaQuick::ContainmentView(corona,
nullptr), to initialise the parent class. nullptr being the parent.

In this case it makes sense as QWindow's overload of setParent must be a
QWindow, but memory management has to happen somewhere.
parent d5803676
......@@ -42,6 +42,7 @@ DesktopView::DesktopView(Plasma::Corona *corona, QScreen *targetScreen)
m_windowType(Desktop),
m_shellSurface(nullptr)
{
QObject::setParent(corona);
if (targetScreen) {
setScreenToFollow(targetScreen);
setScreen(targetScreen);
......
Markdown is supported
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