tests: Destroy placed resources after destroying heap.

In order to exercise that the destroyed heap isn't accessed.

Signed-off-by: Józef Kucia <jkucia@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 2019-07-04 16:41:06 +02:00 committed by Alexandre Julliard
parent 5243b8c3f6
commit c648ea85aa

View File

@ -6769,11 +6769,11 @@ static void test_map_placed_resources(void)
release_resource_readback(&rb);
ID3D12Resource_Release(uav_buffer);
for (i = 0; i < ARRAY_SIZE(cb); ++i)
ID3D12Resource_Release(cb[i]);
ID3D12Resource_Release(readback_buffer);
ID3D12Heap_Release(upload_heap);
ID3D12Heap_Release(readback_heap);
for (i = 0; i < ARRAY_SIZE(cb); ++i)
ID3D12Resource_Release(cb[i]);
destroy_test_context(&context);
}