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

mshtml: Fix leaks in create_all_list.

parent 7d8fd7df
......@@ -656,8 +656,6 @@ static void create_all_list(HTMLDOMNode *elem, elem_vector_t *buf)
}
nsIDOMNodeList_GetLength(nsnode_list, &list_len);
if(!list_len)
return;
for(i=0; i<list_len; i++) {
nsres = nsIDOMNodeList_Item(nsnode_list, i, &iter);
......@@ -672,13 +670,18 @@ static void create_all_list(HTMLDOMNode *elem, elem_vector_t *buf)
hres = get_node(iter, TRUE, &node);
if(FAILED(hres)) {
FIXME("get_node failed: %08lx\n", hres);
nsIDOMNode_Release(iter);
continue;
}
elem_vector_add(buf, elem_from_HTMLDOMNode(node));
create_all_list(node, buf);
}
nsIDOMNode_Release(iter);
}
nsIDOMNodeList_Release(nsnode_list);
}
IHTMLElementCollection *create_all_collection(HTMLDOMNode *node, BOOL include_root)
......
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