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() {