Commit 35cff9ec authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

quartz/tests: Fix some media type leaks (Valgrind).

parent c5ca3b00
......@@ -1525,6 +1525,8 @@ static void test_connect_pin(void)
ok(testsource.source.pin.peer == sink, "Got peer %p.\n", testsource.source.pin.peer);
IFilterGraph2_Disconnect(graph, &testsource.source.pin.IPin_iface);
FreeMediaType(&source_mt);
FreeMediaType(&req_mt);
IMemInputPin_Release(meminput);
IPin_Release(sink);
IPin_Release(source);
......
......@@ -1233,6 +1233,7 @@ static void test_connect_pin(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(compare_media_types(&mt, &req_mt), "Media types didn't match.\n");
ok(compare_media_types(&testsource.source.pin.mt, &req_mt), "Media types didn't match.\n");
FreeMediaType(&mt);
hr = IMediaControl_Pause(control);
ok(hr == S_OK, "Got hr %#lx.\n", hr);
......@@ -1281,6 +1282,7 @@ static void test_connect_pin(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(compare_media_types(&mt, &req_mt), "Media types didn't match.\n");
ok(compare_media_types(&testsink.sink.pin.mt, &req_mt), "Media types didn't match.\n");
FreeMediaType(&mt);
hr = IMediaControl_Pause(control);
ok(hr == S_OK, "Got hr %#lx.\n", hr);
......
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