drop doc reference on CSS loader

git-svn-id: svn://10.0.0.236/trunk@32806 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-05-26 23:50:26 +00:00
parent a47fc826f9
commit 47dac71798
2 changed files with 8 additions and 2 deletions

View File

@@ -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();