mshtml/tests: Fixed memory leak and made Vtbl's const.

This commit is contained in:
Thomas Mullaly 2011-03-08 23:27:16 -05:00 committed by Alexandre Julliard
parent d0e6aa0204
commit a33df48f36
1 changed files with 4 additions and 3 deletions

View File

@ -1197,7 +1197,7 @@ static HRESULT WINAPI timeoutFunc_Invoke(IDispatchEx *iface, DISPID dispIdMember
return S_OK; return S_OK;
} }
static IDispatchExVtbl timeoutFuncVtbl = { static const IDispatchExVtbl timeoutFuncVtbl = {
DispatchEx_QueryInterface, DispatchEx_QueryInterface,
DispatchEx_AddRef, DispatchEx_AddRef,
DispatchEx_Release, DispatchEx_Release,
@ -1231,7 +1231,7 @@ static HRESULT WINAPI div_onclick_disp_Invoke(IDispatchEx *iface, DISPID id,
return S_OK; return S_OK;
} }
static IDispatchExVtbl div_onclick_dispVtbl = { static const IDispatchExVtbl div_onclick_dispVtbl = {
Dispatch_QueryInterface, Dispatch_QueryInterface,
DispatchEx_AddRef, DispatchEx_AddRef,
DispatchEx_Release, DispatchEx_Release,
@ -2208,7 +2208,7 @@ static HRESULT WINAPI PropertyNotifySink_OnRequestEdit(IPropertyNotifySink *ifac
return E_NOTIMPL; return E_NOTIMPL;
} }
static IPropertyNotifySinkVtbl PropertyNotifySinkVtbl = { static const IPropertyNotifySinkVtbl PropertyNotifySinkVtbl = {
PropertyNotifySink_QueryInterface, PropertyNotifySink_QueryInterface,
PropertyNotifySink_AddRef, PropertyNotifySink_AddRef,
PropertyNotifySink_Release, PropertyNotifySink_Release,
@ -2410,6 +2410,7 @@ static void test_empty_document(void)
ok(hres == S_OK, "Unadvise failed: %08x\n", hres); ok(hres == S_OK, "Unadvise failed: %08x\n", hres);
IHTMLDocument2_Release(windows_doc); IHTMLDocument2_Release(windows_doc);
IHTMLDocument2_Release(doc);
} }
START_TEST(events) START_TEST(events)