Commit e150f96a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed event target leak in dispatch_event.

parent 8600c2a5
...@@ -1581,6 +1581,8 @@ void dispatch_event(EventTarget *event_target, DOMEvent *event) ...@@ -1581,6 +1581,8 @@ void dispatch_event(EventTarget *event_target, DOMEvent *event)
if(target_vtbl && target_vtbl->set_current_event) if(target_vtbl && target_vtbl->set_current_event)
prev_event = target_vtbl->set_current_event(&event_target->dispex, event->event_obj); prev_event = target_vtbl->set_current_event(&event_target->dispex, event->event_obj);
if(event->target)
IDispatchEx_Release(&event->target->dispex.IDispatchEx_iface);
event->target = event_target; event->target = event_target;
IDispatchEx_AddRef(&event_target->dispex.IDispatchEx_iface); IDispatchEx_AddRef(&event_target->dispex.IDispatchEx_iface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment