plug leaking nsWindow. bug 48066. code=sean@beatnik.com r=law@netscape.com, me
git-svn-id: svn://10.0.0.236/trunk@76200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -89,8 +89,8 @@ nsUrlWidget::SetURLToHiddenControl( char const *aURL, nsIDOMWindow *parent )
|
||||
ppDocShell->QueryInterface(NS_GET_IID(nsIBaseWindow), (void **)&ppBaseWindow);
|
||||
if (ppBaseWindow != NULL)
|
||||
{
|
||||
nsIWidget* ppWidget;
|
||||
ppBaseWindow->GetMainWidget(&ppWidget);
|
||||
nsCOMPtr<nsIWidget> ppWidget;
|
||||
ppBaseWindow->GetMainWidget(getter_AddRefs(ppWidget));
|
||||
hMainFrame = (HWND)ppWidget->GetNativeData(NS_NATIVE_WIDGET);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user