mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +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...
|
||||
if (nsnull != mDocLoader) {
|
||||
mDocLoader->Stop();
|
||||
NS_IF_RELEASE(mDocLoader);
|
||||
NS_RELEASE(mDocLoader);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mInnerWindow);
|
||||
|
||||
|
@ -263,8 +263,10 @@ nsWebShell::nsWebShell()
|
||||
nsWebShell::~nsWebShell()
|
||||
{
|
||||
// Stop any pending document loads and destroy the loader...
|
||||
if (nsnull != mDocLoader) {
|
||||
mDocLoader->Stop();
|
||||
NS_IF_RELEASE(mDocLoader);
|
||||
NS_RELEASE(mDocLoader);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mInnerWindow);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user