Don't crash when closing the not-so-hidden window.

git-svn-id: svn://10.0.0.236/trunk@47986 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
1999-09-17 19:56:53 +00:00
parent 6974f5833b
commit 6cd9719155

View File

@@ -1871,7 +1871,7 @@ NS_IMETHODIMP
nsWebShellWindow::GetWidget(nsIWidget *& aWidget)
{
aWidget = mWindow;
NS_ADDREF(mWindow);
NS_IF_ADDREF(mWindow);
return NS_OK;
}