This commit is contained in:
jag%tty.nl 2005-05-18 09:54:04 +00:00
Родитель 5d2f18cdfa
Коммит 15bd25742d
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -5053,7 +5053,7 @@ nsDocShell::RestorePresentation(nsISHEntry *aSHEntry, PRBool aSavePresentation,
mFiredUnloadEvent = PR_FALSE;
if (mContentViewer) {
mContentViewer->Close(aSavePresentation ? mOSHE : nsnull);
mContentViewer->Close(aSavePresentation ? mOSHE.get() : nsnull);
mContentViewer->Destroy();
}
@ -5570,7 +5570,7 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
// Tell the old content viewer to hibernate in session history when
// it is destroyed.
mContentViewer->Close(mSavingOldViewer ? mOSHE : nsnull);
mContentViewer->Close(mSavingOldViewer ? mOSHE.get() : nsnull);
aNewViewer->SetPreviousViewer(mContentViewer);
mContentViewer = nsnull;