diff --git a/wayland_server.cpp b/wayland_server.cpp index f1b59b0d5c..786899166c 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -82,6 +82,7 @@ void WaylandServer::destroyInternalConnection() m_internalConnection.client->deleteLater(); m_internalConnection.clientThread->quit(); m_internalConnection.clientThread->wait(); + delete m_internalConnection.clientThread; m_internalConnection.client = nullptr; } }