diff options
author | Simon Rettberg | 2016-10-28 19:31:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-10-28 19:31:22 +0200 |
commit | 542ef2fddaf7a485e25529e2a2b09c61da69d4e6 (patch) | |
tree | fc20843218433cb507227e8a303ac754a691f520 /src/client/net | |
parent | [client] Fix use-after-free by adding missing signal-slot-connection (diff) | |
download | pvs2-542ef2fddaf7a485e25529e2a2b09c61da69d4e6.tar.gz pvs2-542ef2fddaf7a485e25529e2a2b09c61da69d4e6.tar.xz pvs2-542ef2fddaf7a485e25529e2a2b09c61da69d4e6.zip |
Fix compile warnings
Diffstat (limited to 'src/client/net')
-rw-r--r-- | src/client/net/serverconnection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/net/serverconnection.cpp b/src/client/net/serverconnection.cpp index 46f2538..826cf06 100644 --- a/src/client/net/serverconnection.cpp +++ b/src/client/net/serverconnection.cpp @@ -44,6 +44,7 @@ ServerConnection::ServerConnection(const QString& host, const quint16 port, cons ServerConnection::~ServerConnection() { + this->disconnectFromServer(); if (_socket != NULL) { qCritical("**** SOCKET DELETE IN DESTRUCTOR"); _socket->deleteLater(); |