Commit c9c47459 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3/tests: Fix some stream instance leaks (Valgrind).

parent 1742449a
......@@ -2443,6 +2443,7 @@ static void test_saxreader(void)
hr = ISAXXMLReader_parse(reader, var);
EXPECT_HR(hr, S_OK);
ok_sequence(sequences, CONTENT_HANDLER_INDEX, test_seq, "attribute value normalization", TRUE);
IStream_Release(stream);
resolver = (void*)0xdeadbeef;
hr = ISAXXMLReader_getEntityResolver(reader, &resolver);
......@@ -2476,6 +2477,8 @@ static void test_saxreader(void)
sprintf(seqname, "%s: cdata test", table->name);
ok_sequence(sequences, CONTENT_HANDLER_INDEX, test_seq, seqname, TRUE);
IStream_Release(stream);
/* 2. CDATA sections */
stream = create_test_stream(test2_cdata_xml, -1);
V_VT(&var) = VT_UNKNOWN;
......@@ -4244,6 +4247,7 @@ static void test_mxwriter_stream(void)
EXPECT_HR(hr, S_OK);
ok(pos2.QuadPart == 2, "got wrong position\n");
IStream_Release(stream);
ISAXContentHandler_Release(content);
IMXWriter_Release(writer);
......@@ -5509,6 +5513,7 @@ static void test_mxattr_localname(void)
ISAXAttributes_Release(saxattr);
IMXAttributes_Release(mxattr);
free_bstrs();
}
}
......
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