diff --git a/mozilla/xpcom/proxy/src/nsProxyEvent.cpp b/mozilla/xpcom/proxy/src/nsProxyEvent.cpp index df76587c16f..0e7bacff39c 100644 --- a/mozilla/xpcom/proxy/src/nsProxyEvent.cpp +++ b/mozilla/xpcom/proxy/src/nsProxyEvent.cpp @@ -446,7 +446,8 @@ nsProxyObject::Post( PRUint32 methodIndex, nsXPTMethodInfo *methodInfo, nsXPTCMi if (callDirectly) { - EventHandler(event); + EventHandler(event); + PL_DestroyEvent(event); // there is no need to call the DestroyHandler() because // there is no need to wake up the nested event loop. }