diff options
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r-- | base/message_loop.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc index 181d76f..fffeb09 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -113,6 +113,13 @@ MessageLoop::~MessageLoop() { ReloadWorkQueue(); DeletePendingTasks(); + // Delete tasks in the delayed work queue. + while (!delayed_work_queue_.empty()) { + Task* task = delayed_work_queue_.top().task; + delayed_work_queue_.pop(); + delete task; + } + #if defined(OS_WIN) // Match timeBeginPeriod() from construction. timeEndPeriod(1); |