From 682ab97e473b5325f5c5e0d0747a44df1aa33b9d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 10 Jan 2015 15:36:13 +0100 Subject: Remove some unnecessary NULL checks --- src/inspsocket.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/inspsocket.cpp') 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) -- cgit v1.3.1-10-gc9f91