Zebediah Figura : quartz/tests: Fix an invalid free.

Alexandre Julliard julliard at winehq.org
Fri Nov 22 16:17:26 CST 2019


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Nov 22 10:21:32 2019 -0600

quartz/tests: Fix an invalid free.

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

---

 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 d0ae25a969..c5a455afb2 100644
--- a/dlls/quartz/tests/vmr9.c
+++ b/dlls/quartz/tests/vmr9.c
@@ -1340,6 +1340,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)
     {
@@ -1411,8 +1412,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);




More information about the wine-cvs mailing list