diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-09-25 23:35:18 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-09-25 23:35:18 +0900 |
| commit | 77b7747ca8b6fdb44a5c5143ac3110164b65afc9 (patch) | |
| tree | 5f6925e90657e00a4a4a920aba91a94c017f0601 /src/DownloadEngine.h | |
| parent | e3e4ff700a4ebf629f546c2379859b4181aed864 (diff) | |
Ensure that Commands are cleaned up before RequestGroupMan is deleted
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index dad7773a..eb827b97 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -131,8 +131,6 @@ private: int64_t refreshInterval_; Timer lastRefresh_; - std::deque<std::unique_ptr<Command>> routineCommands_; - std::unique_ptr<CookieStorage> cookieStorage_; #ifdef ENABLE_BITTORRENT @@ -167,11 +165,14 @@ private: std::multimap<std::string, SocketPoolEntry>::iterator findSocketPoolEntry(const std::string& key); - std::deque<std::unique_ptr<Command>> commands_; std::unique_ptr<RequestGroupMan> requestGroupMan_; std::unique_ptr<FileAllocationMan> fileAllocationMan_; std::unique_ptr<CheckIntegrityMan> checkIntegrityMan_; Option* option_; + // Ensure that Commands are cleaned up before requestGroupMan_ is + // deleted. + std::deque<std::unique_ptr<Command>> routineCommands_; + std::deque<std::unique_ptr<Command>> commands_; public: DownloadEngine(std::unique_ptr<EventPoll> eventPoll); |
