Module: wine Branch: master Commit: f8d9bf365159d9155f7728ba9b6e5babf5d41cc4 URL: https://gitlab.winehq.org/wine/wine/-/commit/f8d9bf365159d9155f7728ba9b6e5ba...
Author: Alfred Agrell floating@muncher.se Date: Thu Sep 14 11:01:09 2023 +0200
quartz/tests: Fix segfault in changed3ddevice test.
---
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);