Clang: Fix call of already destroyed virtual table

Task-number: QTCREATORBUG-16597
Change-Id: Ic5391ba7529de5b5ef5de260f4a5e831003ffbf6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Marco Bubke
2016-07-18 13:33:37 +02:00
committed by Tim Jenssen
parent 19d941d28d
commit 6e4da842ef
4 changed files with 7 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ ClangCodeModelConnectionClient::ClangCodeModelConnectionClient(
}
ClangCodeModelConnectionClient::~ClangCodeModelConnectionClient()
{
finishProcess();
}
ClangCodeModelServerProxy &ClangCodeModelConnectionClient::serverProxy()
{
return serverProxy_;

View File

@@ -33,6 +33,8 @@ class CMBIPC_EXPORT ClangCodeModelConnectionClient : public ConnectionClient
{
public:
ClangCodeModelConnectionClient(ClangCodeModelClientInterface *client);
~ClangCodeModelConnectionClient();
ClangCodeModelServerProxy &serverProxy();

View File

@@ -70,11 +70,6 @@ ConnectionClient::ConnectionClient()
connectLocalSocketConnected();
}
ConnectionClient::~ConnectionClient()
{
finishProcess();
}
void ConnectionClient::startProcessAndConnectToServerAsynchronously()
{
process_ = startProcess();

View File

@@ -50,7 +50,6 @@ class CMBIPC_EXPORT ConnectionClient : public QObject
public:
ConnectionClient();
~ConnectionClient();
void startProcessAndConnectToServerAsynchronously();
bool disconnectFromServer();