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

mshtml: Event handler may be already free in release_event_target.

parent 3e422b9e
......@@ -1343,7 +1343,8 @@ void release_event_target(event_target_t *event_target)
if(event_target->event_table[i]->handler_prop)
IDispatch_Release(event_target->event_table[i]->handler_prop);
for(j=0; j < event_target->event_table[i]->handler_cnt; j++)
IDispatch_Release(event_target->event_table[i]->handlers[j]);
if(event_target->event_table[i]->handlers[j])
IDispatch_Release(event_target->event_table[i]->handlers[j]);
}
}
......
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