msxml3/tests: Fix some string leaks in tests.

This commit is contained in:
Nikolay Sivov 2010-01-10 18:44:59 +03:00 committed by Alexandre Julliard
parent b122cd7a1c
commit 1c040a38c6
1 changed files with 5 additions and 0 deletions

View File

@ -520,6 +520,8 @@ static void test_saxreader(void)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
VariantClear(&var);
SADim[0].lLbound= 0;
SADim[0].cElements= sizeof(szTestXML)-1;
pSA = SafeArrayCreate(VT_UI1, 1, SADim);
@ -560,6 +562,8 @@ static void test_saxreader(void)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
VariantClear(&var);
file = CreateFileA(testXmlA, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError());
WriteFile(file, szTestXML, sizeof(szTestXML)-1, &bytesWritten, NULL);
@ -591,6 +595,7 @@ static void test_saxreader(void)
IXMLDOMDocument_Release(domDocument);
ISAXXMLReader_Release(reader);
SysFreeString(bstrData);
}
START_TEST(saxreader)