summaryrefslogtreecommitdiffstats
path: root/src/compositor
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2017-04-06 10:54:42 +0200
committerJohan Helsing <johan.helsing@qt.io>2017-04-10 08:08:56 +0000
commitf4a29f068e77e8d1a5a08046e47904ff0b6f2d2e (patch)
treea49b06537c313e10be43f7a533332a2db12e80a6 /src/compositor
parent3f4b8826233d379e0180c27fda6721284a44c1fe (diff)
Don't leak shell integrations
Change-Id: I229e4f2a7a561957575ac98eb06f934902537811 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor')
-rw-r--r--src/compositor/extensions/qwaylandquickshellsurfaceitem.cpp6
-rw-r--r--src/compositor/extensions/qwaylandquickshellsurfaceitem.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandquickshellsurfaceitem.cpp b/src/compositor/extensions/qwaylandquickshellsurfaceitem.cpp
index 91f9d7771..25e9906f0 100644
--- a/src/compositor/extensions/qwaylandquickshellsurfaceitem.cpp
+++ b/src/compositor/extensions/qwaylandquickshellsurfaceitem.cpp
@@ -74,6 +74,12 @@ QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent)
{
}
+QWaylandQuickShellSurfaceItem::~QWaylandQuickShellSurfaceItem()
+{
+ Q_D(QWaylandQuickShellSurfaceItem);
+ delete d->m_shellIntegration;
+}
+
/*!
* \internal
*/
diff --git a/src/compositor/extensions/qwaylandquickshellsurfaceitem.h b/src/compositor/extensions/qwaylandquickshellsurfaceitem.h
index de03163cc..28be23620 100644
--- a/src/compositor/extensions/qwaylandquickshellsurfaceitem.h
+++ b/src/compositor/extensions/qwaylandquickshellsurfaceitem.h
@@ -53,6 +53,7 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandQuickShellSurfaceItem : public QWaylan
Q_PROPERTY(QQuickItem *moveItem READ moveItem WRITE setMoveItem NOTIFY moveItemChanged)
public:
QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr);
+ ~QWaylandQuickShellSurfaceItem();
QWaylandShellSurface *shellSurface() const;
void setShellSurface(QWaylandShellSurface *shellSurface);