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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user