[wayland] Don't leak our internal client connection thread object

Thanks ASAN!
This commit is contained in:
Martin Gräßlin 2015-11-10 11:43:30 +01:00
parent 8175562a7a
commit acb0dfd893

View file

@ -82,6 +82,7 @@ void WaylandServer::destroyInternalConnection()
m_internalConnection.client->deleteLater(); m_internalConnection.client->deleteLater();
m_internalConnection.clientThread->quit(); m_internalConnection.clientThread->quit();
m_internalConnection.clientThread->wait(); m_internalConnection.clientThread->wait();
delete m_internalConnection.clientThread;
m_internalConnection.client = nullptr; m_internalConnection.client = nullptr;
} }
} }