From be22876348950b758ba120d41a59faa8e41480ce Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 14 Aug 2020 16:51:46 +0200 Subject: [PATCH] Don't double-delete Window::handle It also gets deleted when cleaning up the Workspace. Found using ASAN. --- plugins/qpa/window.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/qpa/window.h b/plugins/qpa/window.h index 191b22b470..705246933a 100644 --- a/plugins/qpa/window.h +++ b/plugins/qpa/window.h @@ -10,6 +10,7 @@ #ifndef KWIN_QPA_WINDOW_H #define KWIN_QPA_WINDOW_H +#include #include class QOpenGLFramebufferObject; @@ -44,7 +45,7 @@ private: void map(); void unmap(); - InternalClient *m_handle = nullptr; + QPointer m_handle; QSharedPointer m_contentFBO; quint32 m_windowId; bool m_resized = false;