forked from qt-creator/qt-creator
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:
@@ -35,6 +35,11 @@ ClangCodeModelConnectionClient::ClangCodeModelConnectionClient(
|
||||
|
||||
}
|
||||
|
||||
ClangCodeModelConnectionClient::~ClangCodeModelConnectionClient()
|
||||
{
|
||||
finishProcess();
|
||||
}
|
||||
|
||||
ClangCodeModelServerProxy &ClangCodeModelConnectionClient::serverProxy()
|
||||
{
|
||||
return serverProxy_;
|
||||
|
||||
@@ -33,6 +33,8 @@ class CMBIPC_EXPORT ClangCodeModelConnectionClient : public ConnectionClient
|
||||
{
|
||||
public:
|
||||
ClangCodeModelConnectionClient(ClangCodeModelClientInterface *client);
|
||||
~ClangCodeModelConnectionClient();
|
||||
|
||||
|
||||
ClangCodeModelServerProxy &serverProxy();
|
||||
|
||||
|
||||
@@ -70,11 +70,6 @@ ConnectionClient::ConnectionClient()
|
||||
connectLocalSocketConnected();
|
||||
}
|
||||
|
||||
ConnectionClient::~ConnectionClient()
|
||||
{
|
||||
finishProcess();
|
||||
}
|
||||
|
||||
void ConnectionClient::startProcessAndConnectToServerAsynchronously()
|
||||
{
|
||||
process_ = startProcess();
|
||||
|
||||
@@ -50,7 +50,6 @@ class CMBIPC_EXPORT ConnectionClient : public QObject
|
||||
|
||||
public:
|
||||
ConnectionClient();
|
||||
~ConnectionClient();
|
||||
|
||||
void startProcessAndConnectToServerAsynchronously();
|
||||
bool disconnectFromServer();
|
||||
|
||||
Reference in New Issue
Block a user