summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-10 15:36:13 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-10 15:36:13 +0100
commit682ab97e473b5325f5c5e0d0747a44df1aa33b9d (patch)
treefe48ae12b13eb286fcaf8fd4af581aca259f5848 /src/inspsocket.cpp
parent47dda4f61512f6047f2b1dcccd1943aab74726e3 (diff)
Remove some unnecessary NULL checks
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 886130f1b..d3ee7538b 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -475,11 +475,8 @@ void BufferedSocket::DoWrite()
BufferedSocket::~BufferedSocket()
{
this->Close();
- if (Timeout)
- {
- // The timer is removed from the TimerManager in Timer::~Timer()
- delete Timeout;
- }
+ // The timer is removed from the TimerManager in Timer::~Timer()
+ delete Timeout;
}
void StreamSocket::HandleEvent(EventType et, int errornum)