Module: wine Branch: master Commit: 1c040a38c6a2ac947c56bff72f87725e463a0162 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c040a38c6a2ac947c56bff72f...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sun Jan 10 18:44:59 2010 +0300
msxml3/tests: Fix some string leaks in tests.
---
dlls/msxml3/tests/saxreader.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c index dd0e42c..a932bf9 100644 --- a/dlls/msxml3/tests/saxreader.c +++ b/dlls/msxml3/tests/saxreader.c @@ -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)