back out 349069 to see if it caused xserve02 orange

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-08-25 10:06:20 +00:00
parent c5b04de8c7
commit 7472412a7c

View File

@ -215,6 +215,13 @@ nsXULDocument::~nsXULDocument()
NS_ASSERTION(mNextSrcLoadWaiter == nsnull,
"unreferenced document still waiting for script source to load?");
// Notify our observers here, we can't let the nsINode
// destructor do that for us since some of the observers are
// deleted by the time we get there.
nsNodeUtils::NodeWillBeDestroyed(this);
// Clear mObservers to keep it in sync with the mutationobserver list
mObservers.Clear();
// In case we failed somewhere early on and the forward observer
// decls never got resolved.
DestroyForwardReferences();