mshtml: Use heap_alloc_zero in NSContainer_Create.

This commit is contained in:
Jacek Caban 2008-06-23 09:54:16 -05:00 committed by Alexandre Julliard
parent 01dc47c884
commit 97298e66ec
1 changed files with 1 additions and 6 deletions

View File

@ -1643,7 +1643,7 @@ NSContainer *NSContainer_Create(HTMLDocument *doc, NSContainer *parent)
if(!load_gecko(FALSE))
return NULL;
ret = heap_alloc(sizeof(NSContainer));
ret = heap_alloc_zero(sizeof(NSContainer));
ret->lpWebBrowserChromeVtbl = &nsWebBrowserChromeVtbl;
ret->lpContextMenuListenerVtbl = &nsContextMenuListenerVtbl;
@ -1656,11 +1656,6 @@ NSContainer *NSContainer_Create(HTMLDocument *doc, NSContainer *parent)
ret->doc = doc;
ret->ref = 1;
ret->bscallback = NULL;
ret->content_listener = NULL;
ret->editor_controller = NULL;
ret->editor = NULL;
ret->reset_focus = NULL;
nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr, NS_WEBBROWSER_CONTRACTID,
NULL, &IID_nsIWebBrowser, (void**)&ret->webbrowser);