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