Daniel Lehman : msxml3/tests: Fix some double-frees of BSTRs.

Alexandre Julliard julliard at winehq.org
Wed Feb 16 15:30:22 CST 2022


Module: wine
Branch: master
Commit: 562c16f4215a4ede1295b03df956b49693abc02b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=562c16f4215a4ede1295b03df956b49693abc02b

Author: Daniel Lehman <dlehman at 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 at esri.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list