From 97298e66ec527260f5c85bad325b7e675c3a0e47 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 23 Jun 2008 09:54:16 -0500 Subject: [PATCH] mshtml: Use heap_alloc_zero in NSContainer_Create. --- dlls/mshtml/nsembed.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index cec359842bd..73aba168a39 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -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);