Bug 546748 - topcrash regression: null dereference in nsRefPtr<T>::assign_assuming_AddRef(AddStyleSheetTxn*) | nsAccEventQueue::Shutdown() [@nsRefPtr<AddStyleSheetTxn>::assign_assuming_AddRef(AddStyleSheetTxn*) | nsAccEventQueue::Shutdown()], r=davidb

This commit is contained in:
Alexander Surkov 2010-02-26 11:02:39 -08:00
parent 4ac915c7e1
commit 796a25bc2e

View File

@ -634,8 +634,10 @@ nsDocAccessible::Shutdown()
return NS_OK; // Already shutdown
}
mEventQueue->Shutdown();
mEventQueue = nsnull;
if (mEventQueue) {
mEventQueue->Shutdown();
mEventQueue = nsnull;
}
nsCOMPtr<nsIDocShellTreeItem> treeItem =
nsCoreUtils::GetDocShellTreeItemFor(mDOMNode);