Bug 630000 - crash [@ NotificationController::Shutdown()], r=davidb, sr=neil, a=davidb

This commit is contained in:
Alexander Surkov
2011-02-02 00:08:28 +08:00
parent 2819d234c6
commit a75b594fd6
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,8 @@ NS_IMPL_RELEASE(NotificationController)
NS_IMPL_CYCLE_COLLECTION_CLASS(NotificationController)
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_NATIVE(NotificationController)
tmp->Shutdown();
if (tmp->mDocument)
tmp->Shutdown();
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_BEGIN(NotificationController)