[PATCH] mshtml: Release listeners in call_event_handlers.

Jacek Caban <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Jacek Caban <[email protected]>
---
  dlls/mshtml/htmlevent.c | 2 ++
  1 file changed, 2 insertions(+)
0001-mshtml-Release-listeners-in-call_event_handlers.diff (text/x-patch, 513 B)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index a3359e0..f9d2460 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -1439,6 +1439,8 @@ static void call_event_handlers(EventTarget *event_target, DOMEvent *event)
         }
     }
 
+    for(listener = listeners; listener < listeners + listeners_cnt; listener++)
+        IDispatch_Release(listener->function);
     if(listeners != listeners_buf)
         heap_free(listeners);
     if(event->phase == DEP_CAPTURING_PHASE)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.