d3drm/tests: Fix some IDirect3D2 reference leaks.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-07-21 15:57:56 +02:00 committed by Alexandre Julliard
parent 20993a38f1
commit fe3a78ba99

View file

@ -4474,7 +4474,7 @@ static void test_create_device_from_d3d2(void)
/* Release leaked references */ /* Release leaked references */
while (IDirect3DRM_Release(d3drm1) > ref4); while (IDirect3DRM_Release(d3drm1) > ref4);
while (IDirect3DDevice2_Release(temp_d3ddevice2) > 0); while (IDirect3DDevice2_Release(temp_d3ddevice2) > 0);
while (IDirect3D2_Release(temp_d3d2) > ref5); while (IDirect3D2_Release(temp_d3d2) >= ref5);
IDirectDrawSurface_Release(surface); IDirectDrawSurface_Release(surface);
IDirectDraw2_Release(temp_ddraw2); IDirectDraw2_Release(temp_ddraw2);
IDirectDraw_Release(temp_ddraw1); IDirectDraw_Release(temp_ddraw1);
@ -4755,7 +4755,7 @@ static void test_create_device_from_d3d3(void)
/* Release leaked references */ /* Release leaked references */
while (IDirect3DRM_Release(d3drm1) > ref4); while (IDirect3DRM_Release(d3drm1) > ref4);
while (IDirect3DDevice2_Release(temp_d3ddevice2) > 0); while (IDirect3DDevice2_Release(temp_d3ddevice2) > 0);
while (IDirect3D2_Release(temp_d3d2) > ref5); while (IDirect3D2_Release(temp_d3d2) >= ref5);
IDirectDrawSurface_Release(surface); IDirectDrawSurface_Release(surface);
IDirectDraw2_Release(temp_ddraw2); IDirectDraw2_Release(temp_ddraw2);
IDirectDraw_Release(temp_ddraw1); IDirectDraw_Release(temp_ddraw1);