Commits

Anonymous committed 19efcff

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

Comments (0)

Files changed (1)

accessible/src/base/nsDocAccessible.cpp

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