Reset WaylandServer::s_self in destructor

When using KWIN_SINGLETON macros, you still need to reset s_self
manually in the destructor.
This commit is contained in:
Vlad Zahorodnii 2021-10-07 18:26:43 +03:00
parent 5be593d4e4
commit 4ba7aa62b9

View file

@ -204,6 +204,7 @@ WaylandServer::WaylandServer(QObject *parent)
WaylandServer::~WaylandServer()
{
destroyInputMethodConnection();
s_self = nullptr;
}
KWaylandServer::ClientConnection *WaylandServer::xWaylandConnection() const