ddraw/tests: Release ddraw after device in test_texture_wrong_caps().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54049
This commit is contained in:
Paul Gofman 2022-12-19 13:49:15 -06:00 committed by Alexandre Julliard
parent 9e351472dd
commit 1a9c1d593b

View file

@ -15657,9 +15657,9 @@ static void test_texture_wrong_caps(const GUID *device_guid)
IDirectDrawSurface_Release(rt);
destroy_viewport(device, viewport);
destroy_material(background);
IDirectDraw2_Release(ddraw);
refcount = IDirect3DDevice2_Release(device);
ok(!refcount, "Device has %lu references left.\n", refcount);
IDirectDraw2_Release(ddraw);
DestroyWindow(window);
}