Zebediah Figura : quartz/tests: Avoid leaking the media type from IPin::ConnectionMediaType() (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Jun 8 15:19:56 CDT 2020


Module: wine
Branch: master
Commit: 036fcf96c83cddee001ef1f3358a7fa25d1db839
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=036fcf96c83cddee001ef1f3358a7fa25d1db839

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Jun  7 16:24:44 2020 -0500

quartz/tests: Avoid leaking the media type from IPin::ConnectionMediaType() (Valgrind).

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/tests/avidec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/quartz/tests/avidec.c b/dlls/quartz/tests/avidec.c
index 0e1e92a950..9505bfb591 100644
--- a/dlls/quartz/tests/avidec.c
+++ b/dlls/quartz/tests/avidec.c
@@ -967,6 +967,7 @@ static void test_connect_pin(void)
     ok(hr == S_OK, "Got hr %#x.\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);
 
     sink_bih = req_format.bmiHeader;
 
@@ -1072,6 +1073,7 @@ static void test_connect_pin(void)
     ok(hr == S_OK, "Got hr %#x.\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 = IFilterGraph2_Disconnect(graph, source);
     ok(hr == S_OK, "Got hr %#x.\n", hr);




More information about the wine-cvs mailing list