Daniel Lehman : msxml3/tests: Fix some double-frees of BSTRs.
Module: wine Branch: master Commit: 562c16f4215a4ede1295b03df956b49693abc02b URL: https://source.winehq.org/git/wine.git/?a=commit;h=562c16f4215a4ede1295b03df... Author: Daniel Lehman <dlehman(a)esri.com> Date: Tue Feb 15 11:59:31 2022 -0800 msxml3/tests: Fix some double-frees of BSTRs. Signed-off-by: Daniel Lehman <dlehman(a)esri.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msxml3/tests/domdoc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index ad4d255abe7..f7929cd3a23 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -5281,7 +5281,6 @@ static void test_cloneNode(void ) V_VT(&v) = VT_BSTR; hr = IXMLDOMDocument2_setProperty(doc, _bstr_("SelectionLanguage"), v); ok(hr == S_OK, "got 0x%08x\n", hr); - VariantClear(&v); /* clone document node */ hr = IXMLDOMDocument2_cloneNode(doc, VARIANT_TRUE, &node); @@ -8847,7 +8846,6 @@ static void test_put_nodeTypedValue(void) V_BSTR(&value) = _bstr_("1"); hr = IXMLDOMElement_put_nodeTypedValue(elem, value); EXPECT_HR(hr, S_OK); - VariantClear(&value); V_VT(&value) = VT_EMPTY; hr = IXMLDOMElement_get_nodeTypedValue(elem, &value);
participants (1)
-
Alexandre Julliard