summaryrefslogtreecommitdiff
path: root/src/TorrentMan.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-08-14 13:48:31 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-08-14 13:48:31 +0000
commit2f14fec78dfc96b88a905621d35f1d726df0791d (patch)
tree8eb4dc9cf94f021ccbdf77dca88924c2c9bf4cea /src/TorrentMan.cc
parent43dae4fd916bb35bf7fd8554fc86ce34c3e7a31b (diff)
parent7ca1b43eddd1aba1c71a38dfb46b5ac5685b43d0 (diff)
Tagging 0.7.0 release of aria2release-0.7.0
Diffstat (limited to 'src/TorrentMan.cc')
-rw-r--r--src/TorrentMan.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/TorrentMan.cc b/src/TorrentMan.cc
index 0e97453e..5704bdd5 100644
--- a/src/TorrentMan.cc
+++ b/src/TorrentMan.cc
@@ -43,7 +43,7 @@
extern PeerHandle nullPeer;
-TorrentMan::TorrentMan():bitfield(NULL),
+TorrentMan::TorrentMan():bitfield(0),
peerEntryIdCounter(0),
cuidCounter(0),
downloadLength(0),
@@ -61,18 +61,16 @@ TorrentMan::TorrentMan():bitfield(NULL),
incomplete(0),
connections(0),
trackers(0),
- diskAdaptor(NULL)
+ req(0),
+ diskAdaptor(0)
{
logger = LogFactory::getInstance();
}
TorrentMan::~TorrentMan() {
- if(bitfield != NULL) {
- delete bitfield;
- }
- if(diskAdaptor != NULL) {
- delete diskAdaptor;
- }
+ delete bitfield;
+ delete diskAdaptor;
+ delete req;
}
// TODO do not use this method in application code