Fix leak of widgets on gmail. b=390088 r+sr=jst a=roc

This commit is contained in:
dbaron@dbaron.org 2007-08-10 14:23:53 -07:00
parent f8aaec0f1d
commit 07cc548152

View File

@ -1823,6 +1823,7 @@ DocumentViewerImpl::Show(void)
base_win->GetParentWidget(&mParentWidget);
NS_ENSURE_TRUE(mParentWidget, NS_ERROR_UNEXPECTED);
mParentWidget->Release(); // GetParentWidget AddRefs, but mParentWidget is weak
mDeviceContext = mParentWidget->GetDeviceContext();