mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
drop doc reference on CSS loader
This commit is contained in:
parent
08474e20a1
commit
3cf97be519
@ -171,7 +171,10 @@ nsHTMLDocument::~nsHTMLDocument()
|
||||
NS_RELEASE(map);
|
||||
}
|
||||
NS_IF_RELEASE(mForms);
|
||||
NS_IF_RELEASE(mCSSLoader);
|
||||
if (mCSSLoader) {
|
||||
mCSSLoader->DropDocumentReference(); // release weak ref
|
||||
NS_RELEASE(mCSSLoader);
|
||||
}
|
||||
|
||||
// XXX don't bother doing this until the dll is unloaded???
|
||||
// nsHTMLAtoms::ReleaseAtoms();
|
||||
|
@ -171,7 +171,10 @@ nsHTMLDocument::~nsHTMLDocument()
|
||||
NS_RELEASE(map);
|
||||
}
|
||||
NS_IF_RELEASE(mForms);
|
||||
NS_IF_RELEASE(mCSSLoader);
|
||||
if (mCSSLoader) {
|
||||
mCSSLoader->DropDocumentReference(); // release weak ref
|
||||
NS_RELEASE(mCSSLoader);
|
||||
}
|
||||
|
||||
// XXX don't bother doing this until the dll is unloaded???
|
||||
// nsHTMLAtoms::ReleaseAtoms();
|
||||
|
Loading…
Reference in New Issue
Block a user