From 4ba7aa62b9f01bffe4391f4290a104542c91ac69 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 7 Oct 2021 18:26:43 +0300 Subject: [PATCH] Reset WaylandServer::s_self in destructor When using KWIN_SINGLETON macros, you still need to reset s_self manually in the destructor. --- src/wayland_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 5038cbaee0..fd497d1d83 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -204,6 +204,7 @@ WaylandServer::WaylandServer(QObject *parent) WaylandServer::~WaylandServer() { destroyInputMethodConnection(); + s_self = nullptr; } KWaylandServer::ClientConnection *WaylandServer::xWaylandConnection() const