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