mshtml: Fixed some leaks in tests (valgrind).
This commit is contained in:
parent
60d8c48132
commit
103ef913d1
|
@ -471,6 +471,7 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper
|
||||||
ok(hres == S_OK, "Read failed: %08x\n", hres);
|
ok(hres == S_OK, "Read failed: %08x\n", hres);
|
||||||
ok(V_VT(&v) == VT_BSTR, "V_VT(&v) = %d\n", V_VT(&v));
|
ok(V_VT(&v) == VT_BSTR, "V_VT(&v) = %d\n", V_VT(&v));
|
||||||
ok(!strcmp_wa(V_BSTR(&v), "3"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
|
ok(!strcmp_wa(V_BSTR(&v), "3"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
|
||||||
|
SysFreeString(V_BSTR(&v));
|
||||||
|
|
||||||
V_VT(&v) = VT_I4;
|
V_VT(&v) = VT_I4;
|
||||||
V_I4(&v) = 0xdeadbeef;
|
V_I4(&v) = 0xdeadbeef;
|
||||||
|
|
|
@ -2909,6 +2909,7 @@ static IHTMLElement *_test_create_elem(unsigned line, IHTMLDocument2 *doc, const
|
||||||
hres = IHTMLDocument2_createElement(doc, tmp, &elem);
|
hres = IHTMLDocument2_createElement(doc, tmp, &elem);
|
||||||
ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres);
|
ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres);
|
||||||
ok_(__FILE__,line) (elem != NULL, "elem == NULL\n");
|
ok_(__FILE__,line) (elem != NULL, "elem == NULL\n");
|
||||||
|
SysFreeString(tmp);
|
||||||
|
|
||||||
return elem;
|
return elem;
|
||||||
}
|
}
|
||||||
|
@ -2927,6 +2928,7 @@ static IHTMLDOMNode *_test_create_text(unsigned line, IHTMLDocument2 *doc, const
|
||||||
tmp = a2bstr(text);
|
tmp = a2bstr(text);
|
||||||
hres = IHTMLDocument3_createTextNode(doc3, tmp, &node);
|
hres = IHTMLDocument3_createTextNode(doc3, tmp, &node);
|
||||||
IHTMLDocument3_Release(doc3);
|
IHTMLDocument3_Release(doc3);
|
||||||
|
SysFreeString(tmp);
|
||||||
ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres);
|
ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres);
|
||||||
ok_(__FILE__,line) (node != NULL, "node == NULL\n");
|
ok_(__FILE__,line) (node != NULL, "node == NULL\n");
|
||||||
|
|
||||||
|
|
|
@ -986,6 +986,7 @@ static HRESULT WINAPI iframe_onreadystatechange(IDispatchEx *iface, DISPID id, L
|
||||||
else
|
else
|
||||||
ok(0, "unexpected state %s\n", wine_dbgstr_w(str));
|
ok(0, "unexpected state %s\n", wine_dbgstr_w(str));
|
||||||
|
|
||||||
|
SysFreeString(str);
|
||||||
IHTMLDocument2_Release(iframe_doc);
|
IHTMLDocument2_Release(iframe_doc);
|
||||||
IHTMLFrameBase2_Release(iframe);
|
IHTMLFrameBase2_Release(iframe);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue