mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Added check to see if DocLoader exists before dereferencing the pointer...
This commit is contained in:
parent
1cdeba207d
commit
92f005308f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user