зеркало из https://github.com/mozilla/gecko-dev.git
addref return ptr in GetContentDocShell -- the real reason for bug 47491
This commit is contained in:
Родитель
961e14f102
Коммит
879c25a8fb
|
@ -1056,10 +1056,11 @@ nsBrowserInstance::SetContentWindow(nsIDOMWindow* aWin)
|
|||
NS_IMETHODIMP
|
||||
nsBrowserInstance::GetContentDocShell(nsIDocShell** aDocShell)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aDocShell);
|
||||
NS_ENSURE_ARG_POINTER(aDocShell);
|
||||
|
||||
*aDocShell = GetContentAreaDocShell();
|
||||
return NS_OK;
|
||||
*aDocShell = GetContentAreaDocShell();
|
||||
NS_IF_ADDREF(*aDocShell); // (GetContentAreaDocShell doesn't)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче