From bd3098faf49eabf718cd7fcae4bba30c2fda2b81 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 22 Mar 2010 14:59:58 +0000 Subject: [PATCH] 2010-03-22 Tatsuhiro Tsujikawa Code cleanup * src/SleepCommand.cc --- ChangeLog | 5 +++++ src/SleepCommand.cc | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e314ff2..bed9403c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-22 Tatsuhiro Tsujikawa + + Code cleanup + * src/SleepCommand.cc + 2010-03-22 Tatsuhiro Tsujikawa Do exact match if IP address is specified in --no-proxy. diff --git a/src/SleepCommand.cc b/src/SleepCommand.cc index dca19457..78811de1 100644 --- a/src/SleepCommand.cc +++ b/src/SleepCommand.cc @@ -47,9 +47,7 @@ SleepCommand::SleepCommand(cuid_t cuid, DownloadEngine* e, nextCommand(nextCommand), wait(wait) {} SleepCommand::~SleepCommand() { - if(nextCommand) { - delete(nextCommand); - } + delete nextCommand; } bool SleepCommand::execute() {