mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
msxml3/tests: Fix some stream instance leaks (Valgrind).
This commit is contained in:
parent
1742449ad8
commit
c9c47459a9
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user