summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-08-14 03:00:30 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-08-14 03:00:30 +0200
commit88851b6de433ab25047166bf4708e99e111b7af2 (patch)
tree3acfbd26c14076cef5865bf15d370e6f25b5dad6 /src/plugins
parent9411f6fbd9c05eaf7109982a055348a088721080 (diff)
parentbbd16989e07d6da367f71a4c36234409bf018287 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6.cpp b/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6.cpp
index f151d1eb6..1dc43b371 100644
--- a/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6.cpp
+++ b/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6.cpp
@@ -206,8 +206,10 @@ QWaylandXdgSurfaceV6::QWaylandXdgSurfaceV6(QWaylandXdgShellV6 *shell, ::zxdg_sur
QWaylandXdgSurfaceV6::~QWaylandXdgSurfaceV6()
{
- if (m_toplevel)
- zxdg_toplevel_v6_destroy(m_toplevel->object());
+ if (m_toplevel) {
+ delete m_toplevel;
+ m_toplevel = nullptr;
+ }
if (m_popup) {
delete m_popup;
m_popup = nullptr;