From f41db1a1637b4b5aff9bcf0dd75ae45305690177 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 5 Sep 2016 12:50:15 +0200 Subject: [PATCH] d3drm/tests: Fix some reference leaks. Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3drm/tests/d3drm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/d3drm/tests/d3drm.c b/dlls/d3drm/tests/d3drm.c index 0d928239eca..85af6d242f5 100644 --- a/dlls/d3drm/tests/d3drm.c +++ b/dlls/d3drm/tests/d3drm.c @@ -6273,6 +6273,7 @@ static void test_viewport_clear1(void) IDirect3DRMDevice_Release(device1); IDirect3DRM_Release(d3drm1); IDirectDrawClipper_Release(clipper); + IDirectDraw_Release(ddraw); DestroyWindow(window); } @@ -6518,10 +6519,9 @@ static void test_viewport_clear2(void) ok(SUCCEEDED(hr), "Cannot clear viewport (hr = %#x).\n", hr); IDirectDrawSurface_Release(surface); + IDirect3DRMViewport2_Release(viewport2); IDirect3DRMDevice3_Release(device3); IDirect3DDevice2_Release(d3d_device2); - IDirect3D2_Release(d3d2); - IDirectDraw2_Release(ddraw2); cleanup: IDirect3DRMFrame3_Release(camera3); @@ -6529,6 +6529,9 @@ cleanup: IDirect3DRM3_Release(d3drm3); IDirect3DRM_Release(d3drm1); IDirectDrawClipper_Release(clipper); + IDirect3D2_Release(d3d2); + IDirectDraw2_Release(ddraw2); + IDirectDraw_Release(ddraw1); DestroyWindow(window); }