d3d8: Destroy the window after the visual test.

This commit is contained in:
Stefan Dösinger 2007-11-16 18:40:38 +01:00 committed by Alexandre Julliard
parent 1fc1fe3c6e
commit f0c479d6f7
1 changed files with 6 additions and 1 deletions

View File

@ -800,5 +800,10 @@ START_TEST(visual)
}
cleanup:
if(device_ptr) IDirect3DDevice8_Release(device_ptr);
if(device_ptr) {
D3DDEVICE_CREATION_PARAMETERS creation_parameters;
IDirect3DDevice8_GetCreationParameters(device_ptr, &creation_parameters);
IDirect3DDevice8_Release(device_ptr);
DestroyWindow(creation_parameters.hFocusWindow);
}
}