temporarily disabling lazy instantiation of mDocument and stuffing some 6K of bloattest leaks back into the box

This commit is contained in:
danm%netscape.com 2001-11-16 06:38:01 +00:00
Родитель a1b01421cf
Коммит 2c09d73c86
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -752,8 +752,11 @@ NS_IMETHODIMP GlobalWindowImpl::GetDocument(nsIDOMDocument** aDocument)
what it takes to do so. Note that domdoc here is the same thing as
our mDocument, but we don't have to explicitly set the member variable
because the docshell has already called SetNewDocument(). */
/* Temporarily disabling until I figure out what's leaking.
(The document, obviously.)
if (!mDocument && mDocShell)
nsCOMPtr<nsIDOMDocument> domdoc(do_GetInterface(mDocShell));
*/
*aDocument = mDocument;
NS_IF_ADDREF(*aDocument);