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:
parent
4195e612d0
commit
a705984723
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue