Module: wine Branch: master Commit: f85c5f1c3a21b071d866aa1aefdd855ca2c91795 URL: https://gitlab.winehq.org/wine/wine/-/commit/f85c5f1c3a21b071d866aa1aefdd855...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu May 11 21:32:33 2023 +0200
mf/tests: Avoid leaking media types in test_video_processor (Valgrind).
---
dlls/mf/tests/transform.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/mf/tests/transform.c b/dlls/mf/tests/transform.c index b7d8c088870..ec9be42d8c8 100644 --- a/dlls/mf/tests/transform.c +++ b/dlls/mf/tests/transform.c @@ -6504,7 +6504,10 @@ static void test_video_processor(void) || IsEqualGUID(&expect_available_inputs[i], &MFAudioFormat_MPEG) || IsEqualGUID(&expect_available_inputs[i], &MFVideoFormat_420O) || IsEqualGUID(&expect_available_inputs[i], &MFVideoFormat_A16B16G16R16F) /* w1064v1507 */) + { + IMFMediaType_Release(media_type); continue; + }
winetest_push_context("in %lu", i); ok(hr == S_OK, "GetInputAvailableType returned %#lx\n", hr);