Set internal ClientConnection to null after destroying it

Bshah hit a strange crash which I can only explain by the variable
not being set to null after destroying.
This commit is contained in:
Martin Gräßlin 2016-06-14 16:42:52 +02:00
parent f5b83d18b8
commit 7818a1fa9c

View file

@ -95,6 +95,7 @@ void WaylandServer::destroyInternalConnection()
delete m_internalConnection.clientThread;
m_internalConnection.client = nullptr;
m_internalConnection.server->destroy();
m_internalConnection.server = nullptr;
}
}