mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix leak of widgets on gmail. b=390088 r+sr=jst a=roc
This commit is contained in:
parent
f8aaec0f1d
commit
07cc548152
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user