From: Alfred Agrell floating@muncher.se
--- dlls/quartz/tests/vmr9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/tests/vmr9.c b/dlls/quartz/tests/vmr9.c index 6e566f39c58..447273a91df 100644 --- a/dlls/quartz/tests/vmr9.c +++ b/dlls/quartz/tests/vmr9.c @@ -4335,10 +4335,10 @@ static void test_changed3ddevice(void) IDirect3DDevice9 *device, *device2; RECT rect = {0, 0, 640, 480}; struct testfilter source; + IPin *pin = NULL; HWND window; HRESULT hr; ULONG ref; - IPin *pin;
testfilter_init(&source);
@@ -4386,7 +4386,8 @@ static void test_changed3ddevice(void) IDirect3DDevice9_Release(device2);
out: - IPin_Release(pin); + if (pin) + IPin_Release(pin); ref = IFilterGraph2_Release(graph); ok(!ref, "Got outstanding refcount %ld.\n", ref); IVMRSurfaceAllocatorNotify9_Release(notify);