diff options
Diffstat (limited to 'content/browser/browser_thread_impl.cc')
-rw-r--r-- | content/browser/browser_thread_impl.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc index ef5be1b..4b85b61 100644 --- a/content/browser/browser_thread_impl.cc +++ b/content/browser/browser_thread_impl.cc @@ -43,11 +43,6 @@ BrowserThreadImpl::BrowserThreadImpl(BrowserThread::ID identifier, } BrowserThreadImpl::~BrowserThreadImpl() { - // Subclasses of base::Thread() (or at least the most-derived - // subclass) must call Stop() in their destructor, otherwise the - // vtable for the object can change while the thread's message loop - // is still running, and it uses the object's vtable (it calls the - // virtual method Run). Stop(); } @@ -139,6 +134,7 @@ DeprecatedBrowserThread::DeprecatedBrowserThread(BrowserThread::ID identifier, : BrowserThread(identifier, message_loop) { } DeprecatedBrowserThread::~DeprecatedBrowserThread() { + Stop(); } // An implementation of MessageLoopProxy to be used in conjunction |