| Index: content/browser/browser_thread_impl.cc
|
| diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
|
| index 39fa636da7235c03cc66474a1d2bacae7605aff3..fcccb0c1dfa68fedbfb89ad81dc14658995806d1 100644
|
| --- a/content/browser/browser_thread_impl.cc
|
| +++ b/content/browser/browser_thread_impl.cc
|
| @@ -43,6 +43,12 @@ 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();
|
| }
|
|
|
| // static
|
|
|