vkd3d: Fix segfault when freeing pipeline library.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-11-24 20:00:35 +01:00 committed by Philip Rebohle
parent 8a102d6a1c
commit 1ce5ea8073
1 changed files with 1 additions and 1 deletions

View File

@ -281,8 +281,8 @@ static ULONG STDMETHODCALLTYPE d3d12_pipeline_library_Release(d3d12_pipeline_lib
if (!refcount)
{
d3d12_pipeline_library_cleanup(pipeline_library, pipeline_library->device);
vkd3d_free(pipeline_library);
d3d12_device_release(pipeline_library->device);
vkd3d_free(pipeline_library);
}
return refcount;