Bug 717498 - Clear nsThread::mEventObservers at thread shutdown. r=bsmedberg

This commit is contained in:
Bobby Holley
2012-01-14 10:31:13 -08:00
parent 653cfdcbb8
commit d842b78701
3 changed files with 9 additions and 0 deletions

View File

@@ -176,6 +176,7 @@ nsThreadManager::Shutdown()
// main thread is special we do it manually here after we're sure all events
// have been processed.
mMainThread->SetObserver(nsnull);
mMainThread->ClearObservers();
// Release main thread object.
mMainThread = nsnull;