Commit e495c256 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Simplify dynamic props unlinking.

parent f43f9676
......@@ -2024,13 +2024,8 @@ void dispex_unlink(DispatchEx *This)
return;
for(prop = This->dynamic_data->props; prop < This->dynamic_data->props + This->dynamic_data->prop_cnt; prop++) {
if(V_VT(&prop->var) == VT_DISPATCH) {
V_VT(&prop->var) = VT_EMPTY;
IDispatch_Release(V_DISPATCH(&prop->var));
}else {
VariantClear(&prop->var);
}
}
if(This->dynamic_data->func_disps) {
func_obj_entry_t *iter = This->dynamic_data->func_disps, *end = iter + This->info->func_disp_cnt;
......
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