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
Родитель 165804eee6
Коммит 6dc1731f79
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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)

Просмотреть файл

@ -146,7 +146,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(nsDocAccessible, nsAccessible)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(nsDocAccessible, nsAccessible)
tmp->mNotificationController->Shutdown();
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mNotificationController)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSTARRAY(mChildDocuments)
tmp->mDependentIDsHash.Clear();