bug #37434. Stop() is now called on the content viewer, before the old document is destroyed. This allows the old document to release some stuff :-)

git-svn-id: svn://10.0.0.236/trunk@78453 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
2000-09-08 00:29:13 +00:00
parent 9b2caee4b9
commit 5f1022d223
2 changed files with 6 additions and 16 deletions

View File

@@ -2618,6 +2618,12 @@ NS_IMETHODIMP nsDocShell::SetupNewViewer(nsIContentViewer* aNewViewer)
NS_ERROR_FAILURE);
}
}
// Stop any activity that may be happening in the old document before
// releasing it...
if (mContentViewer) {
mContentViewer->Stop();
}
mContentViewer = nsnull;
// End copying block (Don't hold content/document viewer ref beyond here!!)