summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-16 20:41:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-17 08:58:57 +0100
commitc152349f69acfb6bb873ed1cd12ca1b6dc325f1f (patch)
treef0ebb9c57451a27344a8760446369d2d36d2eefc /sd
parentf510a9726e2ab9f0c8513cd90154bcf67739ceed (diff)
coverity#1202882 Dereference before null check
Change-Id: Ie61df08c11b687c0b4a3ae212b3f9a6c95171396
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/Communicator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx
index d3af69715190..bf399cae8ceb 100644
--- a/sd/source/ui/remotecontrol/Communicator.cxx
+++ b/sd/source/ui/remotecontrol/Communicator.cxx
@@ -122,10 +122,9 @@ void Communicator::execute()
pTransmitter->join();
pTransmitter = NULL;
- if( mpSocket )
- mpSocket->close();
+ mpSocket->close();
delete mpSocket;
-
+ mpSocket = NULL;
RemoteServer::removeCommunicator( this );
}