[PATCH] quartz/tests: Fix an invalid free.

Zebediah Figura z.figura12 at gmail.com
Fri Nov 22 10:21:32 CST 2019


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/quartz/tests/vmr9.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/quartz/tests/vmr9.c b/dlls/quartz/tests/vmr9.c
index 8db5171358..160a8f8804 100644
--- a/dlls/quartz/tests/vmr9.c
+++ b/dlls/quartz/tests/vmr9.c
@@ -1440,6 +1440,7 @@ static void test_connect_pin(void)
     IFilterGraph2_AddFilter(graph, filter, NULL);
 
     IBaseFilter_FindPin(filter, L"VMR Input0", &pin);
+    IPin_QueryInterface(pin, &IID_IMemInputPin, (void **)&input);
 
     for (i = 0; i < ARRAY_SIZE(subtype_tests); ++i)
     {
@@ -1511,8 +1512,6 @@ 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");
 
-    IPin_QueryInterface(pin, &IID_IMemInputPin, (void **)&input);
-
     test_allocator(input);
 
     hr = IMemInputPin_GetAllocator(input, &allocator);
-- 
2.24.0




More information about the wine-devel mailing list