Commit 76d0cab1 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

msxml3: Fix some memory leaks of name in test_xmldoc.

parent 56958984
......@@ -127,6 +127,7 @@ static void test_xmldoc(void)
hr = IXMLElement_get_tagName(element, &name);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(!lstrcmpW(name, szBankAccount), "Expected BANKACCOUNT\n");
SysFreeString(name);
hr = IXMLElement_get_children(element, &collection);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
......@@ -151,6 +152,7 @@ static void test_xmldoc(void)
hr = IXMLElement_get_tagName(child, &name);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(!lstrcmpW(name, szNumber), "Expected NUMBER\n");
SysFreeString(name);
hr = IXMLElement_get_children(child, &inner);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
......@@ -171,6 +173,7 @@ static void test_xmldoc(void)
hr = IXMLElement_get_text(value, &name);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(!lstrcmpW(name, szNumVal), "Expected '1234'\n");
SysFreeString(name);
IXMLElementCollection_Release(inner);
......@@ -196,6 +199,7 @@ static void test_xmldoc(void)
hr = IXMLElement_get_tagName(child, &name);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(!lstrcmpW(name, szName), "Expected NAME\n");
SysFreeString(name);
hr = IXMLElement_get_children(child, &inner);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
......@@ -217,6 +221,7 @@ static void test_xmldoc(void)
hr = IXMLElement_get_text(value, &name);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(!lstrcmpW(name, szNameVal), "Expected 'Captain Ahab'\n");
SysFreeString(name);
IXMLElementCollection_Release(inner);
......
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