vkd3d: Fix memory leak of D3D12 device singleton.

Fairly trivial, caught by ASAN.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2022-01-26 12:00:00 +01:00
parent 49d0eb37e3
commit 29d956c6c4
1 changed files with 1 additions and 0 deletions

View File

@ -2378,6 +2378,7 @@ static void d3d12_remove_device_singleton(LUID luid)
if (!memcmp(&current->adapter_luid, &luid, sizeof(LUID)))
{
list_remove(&current->entry);
vkd3d_free(current);
return;
}
}