浏览代码

2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Code cleanup
	* src/SleepCommand.cc
Tatsuhiro Tsujikawa 15 年之前
父节点
当前提交
bd3098faf4
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 5 0
      ChangeLog
  2. 1 3
      src/SleepCommand.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-03-22  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Code cleanup
+	* src/SleepCommand.cc
+
 2010-03-22  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Do exact match if IP address is specified in --no-proxy.

+ 1 - 3
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() {