Make sure to null out the pres context's container when putting the page into session history (bug 297173). r+sr=dbaron, a=brendan.

This commit is contained in:
bryner%brianryner.com 2005-06-21 02:18:57 +00:00
Родитель a7acafc4d3
Коммит ec6e1ad2c6
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1393,8 +1393,10 @@ DocumentViewerImpl::Destroy()
if (mDocument)
mDocument->SetContainer(nsnull);
if (mPresContext)
if (mPresContext) {
mPresContext->SetLinkHandler(nsnull);
mPresContext->SetContainer(nsnull);
}
return NS_OK;
}