Fixed an error I introduced in DispatchEvent

git-svn-id: svn://10.0.0.236/trunk@12428 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1998-10-09 15:39:24 +00:00
parent 20bed4ce21
commit 8fcb880394

View File

@@ -1226,7 +1226,7 @@ PRBool nsWindow::ConvertStatus(nsEventStatus aStatus)
NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus)
{
NS_ADDREF(event.widget);
NS_ADDREF(event->widget);
aStatus = nsEventStatus_eIgnore;
if (nsnull != mEventCallback) {
@@ -1237,7 +1237,7 @@ NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus
if ((aStatus != nsEventStatus_eIgnore) && (nsnull != mEventListener)) {
aStatus = mEventListener->ProcessEvent(*event);
}
NS_RELEASE(event.widget);
NS_RELEASE(event->widget);
return NS_OK;