diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-05 09:10:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-05 09:10:08 +0000 |
| commit | e40d6b7c0fdfc2518fcf0d79a4c45f8cb769db94 (patch) | |
| tree | 503311fc08ad1b2afeba8bf83178d41fc6e578b6 /src/FileEntry.cc | |
| parent | f0edf98651f7f437bbd9b901907c9a3259687d10 (diff) | |
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Release pooled and in-flight Request objectsand URIResult objects
in FileEntry after download completed.
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FileEntry.cc
* src/FileEntry.h
* src/RequestGroup.cc
Diffstat (limited to 'src/FileEntry.cc')
| -rw-r--r-- | src/FileEntry.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index 25d195e2..5e1ffb4b 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -313,4 +313,11 @@ void FileEntry::reuseUri(size_t num) } } +void FileEntry::releaseRuntimeResource() +{ + _requestPool.clear(); + _inFlightRequests.clear(); + _uriResults.clear(); +} + } // namespace aria2 |
