Kaydet (Commit) c152349f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1202882 Dereference before null check

Change-Id: Ie61df08c11b687c0b4a3ae212b3f9a6c95171396
üst f510a972
...@@ -122,10 +122,9 @@ void Communicator::execute() ...@@ -122,10 +122,9 @@ void Communicator::execute()
pTransmitter->join(); pTransmitter->join();
pTransmitter = NULL; pTransmitter = NULL;
if( mpSocket ) mpSocket->close();
mpSocket->close();
delete mpSocket; delete mpSocket;
mpSocket = NULL;
RemoteServer::removeCommunicator( this ); RemoteServer::removeCommunicator( this );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment