ddraw/tests: Fix IDirectDraw leaks.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-08-09 13:26:44 +02:00 committed by Alexandre Julliard
parent 4195e612d0
commit a705984723
4 changed files with 7 additions and 3 deletions

View file

@ -11707,8 +11707,9 @@ static void test_viewport(void)
IDirect3DDevice_DeleteMatrix(device, proj_handle);
destroy_material(black_background);
refcount = IDirect3DDevice_Release(device);
IDirect3D2_Release(d3d);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirect3D2_Release(d3d);
IDirectDraw_Release(ddraw);
DestroyWindow(window);
}

View file

@ -12989,8 +12989,9 @@ static void test_viewport(void)
destroy_material(black_background);
refcount = IDirect3DDevice2_Release(device);
IDirect3D2_Release(d3d);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirect3D2_Release(d3d);
IDirectDraw2_Release(ddraw);
DestroyWindow(window);
}

View file

@ -15083,8 +15083,9 @@ static void test_viewport(void)
}
refcount = IDirect3DDevice3_Release(device);
IDirect3D3_Release(d3d);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirect3D3_Release(d3d);
IDirectDraw4_Release(ddraw);
DestroyWindow(window);
}

View file

@ -14399,6 +14399,7 @@ static void test_viewport(void)
refcount = IDirect3DDevice7_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);
IDirectDraw7_Release(ddraw);
DestroyWindow(window);
}