Add comment to explain the bustage fix for bug 236408.

This commit is contained in:
peterv%propagandism.org 2004-07-05 16:15:14 +00:00
Родитель 126f69e1dc
Коммит 51213edc32
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -121,6 +121,10 @@ public:
virtual ~nsIDocument() virtual ~nsIDocument()
{ {
// XXX The cleanup of mNodeInfoManager (calling DropDocumentReference and
// releasing it) happens in the nsDocument destructor. We'd prefer to
// do it here but nsNodeInfoManager is a concrete class that we don't
// want to expose to users of the nsIDocument API outside of Gecko.
} }
virtual nsresult StartDocumentLoad(const char* aCommand, virtual nsresult StartDocumentLoad(const char* aCommand,

Просмотреть файл

@ -587,6 +587,7 @@ nsDocument::~nsDocument()
mCSSLoader->DropDocumentReference(); mCSSLoader->DropDocumentReference();
} }
// XXX Ideally we'd do this cleanup in the nsIDocument destructor.
if (mNodeInfoManager) { if (mNodeInfoManager) {
mNodeInfoManager->DropDocumentReference(); mNodeInfoManager->DropDocumentReference();
NS_RELEASE(mNodeInfoManager); NS_RELEASE(mNodeInfoManager);