Commit a33df48f authored by Thomas Mullaly's avatar Thomas Mullaly Committed by Alexandre Julliard

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

parent d0e6aa02
......@@ -1197,7 +1197,7 @@ static HRESULT WINAPI timeoutFunc_Invoke(IDispatchEx *iface, DISPID dispIdMember
return S_OK;
}
static IDispatchExVtbl timeoutFuncVtbl = {
static const IDispatchExVtbl timeoutFuncVtbl = {
DispatchEx_QueryInterface,
DispatchEx_AddRef,
DispatchEx_Release,
......@@ -1231,7 +1231,7 @@ static HRESULT WINAPI div_onclick_disp_Invoke(IDispatchEx *iface, DISPID id,
return S_OK;
}
static IDispatchExVtbl div_onclick_dispVtbl = {
static const IDispatchExVtbl div_onclick_dispVtbl = {
Dispatch_QueryInterface,
DispatchEx_AddRef,
DispatchEx_Release,
......@@ -2208,7 +2208,7 @@ static HRESULT WINAPI PropertyNotifySink_OnRequestEdit(IPropertyNotifySink *ifac
return E_NOTIMPL;
}
static IPropertyNotifySinkVtbl PropertyNotifySinkVtbl = {
static const IPropertyNotifySinkVtbl PropertyNotifySinkVtbl = {
PropertyNotifySink_QueryInterface,
PropertyNotifySink_AddRef,
PropertyNotifySink_Release,
......@@ -2410,6 +2410,7 @@ static void test_empty_document(void)
ok(hres == S_OK, "Unadvise failed: %08x\n", hres);
IHTMLDocument2_Release(windows_doc);
IHTMLDocument2_Release(doc);
}
START_TEST(events)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment