mshtml: Use heap_alloc_zero in HTMLElementCollection_Create.

This commit is contained in:
Jacek Caban 2008-06-18 00:10:47 +02:00 committed by Alexandre Julliard
parent 32ac703e30
commit da4608227f
1 changed files with 1 additions and 1 deletions

View File

@ -1832,7 +1832,7 @@ IHTMLElementCollection *create_all_collection(HTMLDOMNode *node)
static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk,
HTMLElement **elems, DWORD len)
{
HTMLElementCollection *ret = heap_alloc(sizeof(HTMLElementCollection));
HTMLElementCollection *ret = heap_alloc_zero(sizeof(HTMLElementCollection));
ret->lpHTMLElementCollectionVtbl = &HTMLElementCollectionVtbl;
ret->ref = 1;