From d2552c06a0c2c6f259960d92414ca1847d5f75c9 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 25 Oct 2017 23:20:39 +0200 Subject: [PATCH] mshtml: Release listeners in call_event_handlers. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlevent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c index a3359e01e1d..f9d246019e9 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) -- 2.11.4.GIT