diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-08-14 13:48:31 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-08-14 13:48:31 +0000 |
| commit | 2f14fec78dfc96b88a905621d35f1d726df0791d (patch) | |
| tree | 8eb4dc9cf94f021ccbdf77dca88924c2c9bf4cea /src/TorrentMan.cc | |
| parent | 43dae4fd916bb35bf7fd8554fc86ce34c3e7a31b (diff) | |
| parent | 7ca1b43eddd1aba1c71a38dfb46b5ac5685b43d0 (diff) | |
Tagging 0.7.0 release of aria2release-0.7.0
Diffstat (limited to 'src/TorrentMan.cc')
| -rw-r--r-- | src/TorrentMan.cc | 14 |
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 |
