Commit f8d9bf36 authored by Alfred Agrell's avatar Alfred Agrell Committed by Alexandre Julliard

quartz/tests: Fix segfault in changed3ddevice test.

parent 918eeb0d
...@@ -4335,10 +4335,10 @@ static void test_changed3ddevice(void) ...@@ -4335,10 +4335,10 @@ static void test_changed3ddevice(void)
IDirect3DDevice9 *device, *device2; IDirect3DDevice9 *device, *device2;
RECT rect = {0, 0, 640, 480}; RECT rect = {0, 0, 640, 480};
struct testfilter source; struct testfilter source;
IPin *pin = NULL;
HWND window; HWND window;
HRESULT hr; HRESULT hr;
ULONG ref; ULONG ref;
IPin *pin;
testfilter_init(&source); testfilter_init(&source);
...@@ -4386,6 +4386,7 @@ static void test_changed3ddevice(void) ...@@ -4386,6 +4386,7 @@ static void test_changed3ddevice(void)
IDirect3DDevice9_Release(device2); IDirect3DDevice9_Release(device2);
out: out:
if (pin)
IPin_Release(pin); IPin_Release(pin);
ref = IFilterGraph2_Release(graph); ref = IFilterGraph2_Release(graph);
ok(!ref, "Got outstanding refcount %ld.\n", ref); ok(!ref, "Got outstanding refcount %ld.\n", ref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment