Fix leak from complicated ownership cycle by releasing |mChromeEventHandler| in |CleanUp| and |SetDocShell|. b=87466 r=saari sr=hyatt

This commit is contained in:
dbaron%fas.harvard.edu 2001-06-26 21:29:08 +00:00
Родитель a1785baacf
Коммит 1496d5b7f1
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -208,6 +208,7 @@ void GlobalWindowImpl::CleanUp()
mOpener = nsnull; // Forces Release
mControllers = nsnull; // Forces Release
mContext = nsnull; // Forces Release
mChromeEventHandler = nsnull; // Forces Release
}
//*****************************************************************************
@ -438,6 +439,7 @@ NS_IMETHODIMP GlobalWindowImpl::SetDocShell(nsIDocShell* aDocShell)
mContext = nsnull; // force release now
mControllers = nsnull; // force release now
mChromeEventHandler = nsnull; // force release now
}
mDocShell = aDocShell; // Weak Reference