mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Landed changes made on branch (bug #312572)
This commit is contained in:
parent
c8892d2e22
commit
8a88e31cb1
@ -305,6 +305,7 @@ PresShell::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
|
||||
PresShell::~PresShell()
|
||||
{
|
||||
mRefCnt = 99;/* XXX hack! get around re-entrancy bugs */
|
||||
if (nsnull != mDocument) {
|
||||
mDocument->DeleteShell(this);
|
||||
NS_RELEASE(mDocument);
|
||||
@ -315,6 +316,7 @@ PresShell::~PresShell()
|
||||
NS_IF_RELEASE(mPresContext);
|
||||
NS_IF_RELEASE(mViewManager);
|
||||
NS_IF_RELEASE(mStyleSet);
|
||||
mRefCnt = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user