diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 5e6c3a7d08b..7f3c74563ad 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -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;