Ensure that Commands are cleaned up before RequestGroupMan is deleted

pull/131/merge
Tatsuhiro Tsujikawa 2013-09-25 23:35:18 +09:00
parent e3e4ff700a
commit 77b7747ca8
1 changed files with 4 additions and 3 deletions

View File

@ -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);