Nikolay Sivov : mf/tests: Fix mediatype instance leak (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Apr 12 16:11:26 CDT 2021


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Apr 12 17:10:40 2021 +0300

mf/tests: Fix mediatype instance leak (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mf/tests/mf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index 308c1fae529..a5c306a93a0 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -5237,6 +5237,7 @@ static void test_MFRequireProtectedEnvironment(void)
     hr = MFRequireProtectedEnvironment(pd);
     ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
 
+    IMFMediaType_Release(mediatype);
     IMFStreamDescriptor_Release(sd);
     IMFPresentationDescriptor_Release(pd);
 }




More information about the wine-cvs mailing list