Added check to see if DocLoader exists before dereferencing the pointer...

git-svn-id: svn://10.0.0.236/trunk@7024 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-08-01 06:45:43 +00:00
parent b611fe765a
commit 05ff888e16
2 changed files with 8 additions and 4 deletions

View File

@@ -263,8 +263,10 @@ nsWebShell::nsWebShell()
nsWebShell::~nsWebShell()
{
// Stop any pending document loads and destroy the loader...
mDocLoader->Stop();
NS_IF_RELEASE(mDocLoader);
if (nsnull != mDocLoader) {
mDocLoader->Stop();
NS_RELEASE(mDocLoader);
}
NS_IF_RELEASE(mInnerWindow);