mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
20993a38f1
commit
fe3a78ba99
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue