libs/vkd3d: Fix memory leak in d3d12_command_allocator_Release().

This commit is contained in:
Józef Kucia 2016-10-24 15:43:12 +02:00
parent a4c36a87db
commit ec23554b54

View File

@ -700,6 +700,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_allocator_Release(ID3D12CommandAllo
vkd3d_free(allocator->passes); vkd3d_free(allocator->passes);
/* All command buffers are implicitly freed when a pool is destroyed. */ /* All command buffers are implicitly freed when a pool is destroyed. */
vkd3d_free(allocator->command_buffers);
VK_CALL(vkDestroyCommandPool(device->vk_device, allocator->vk_command_pool, NULL)); VK_CALL(vkDestroyCommandPool(device->vk_device, allocator->vk_command_pool, NULL));
vkd3d_free(allocator); vkd3d_free(allocator);