mshtml: Release listeners in call_event_handlers.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-10-25 23:20:39 +02:00 committed by Alexandre Julliard
parent 81c38c8785
commit d2552c06a0
1 changed files with 2 additions and 0 deletions

View File

@ -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)