mshtml: Use heap_alloc_zero in HTMLElementCollection_Create.
This commit is contained in:
parent
32ac703e30
commit
da4608227f
|
@ -1832,7 +1832,7 @@ IHTMLElementCollection *create_all_collection(HTMLDOMNode *node)
|
||||||
static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk,
|
static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk,
|
||||||
HTMLElement **elems, DWORD len)
|
HTMLElement **elems, DWORD len)
|
||||||
{
|
{
|
||||||
HTMLElementCollection *ret = heap_alloc(sizeof(HTMLElementCollection));
|
HTMLElementCollection *ret = heap_alloc_zero(sizeof(HTMLElementCollection));
|
||||||
|
|
||||||
ret->lpHTMLElementCollectionVtbl = &HTMLElementCollectionVtbl;
|
ret->lpHTMLElementCollectionVtbl = &HTMLElementCollectionVtbl;
|
||||||
ret->ref = 1;
|
ret->ref = 1;
|
||||||
|
|
Loading…
Reference in New Issue