Fixed a crash when Destroy(...) was called without first calling Init(...)

git-svn-id: svn://10.0.0.236/trunk@8302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-08-21 06:21:52 +00:00
parent 375b5308ba
commit c88eb2fd9c
2 changed files with 6 additions and 2 deletions

View File

@@ -600,7 +600,9 @@ nsWebShell::Destroy()
nsresult rv = NS_OK;
// Stop any URLs that are currently being loaded...
mDocLoader->Stop();
if (nsnull != mDocLoader) {
mDocLoader->Stop();
}
// Cancel any timers that were set for this loader.
CancelRefreshURLTimers();