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:
parent
49d0eb37e3
commit
29d956c6c4
|
@ -2378,6 +2378,7 @@ static void d3d12_remove_device_singleton(LUID luid)
|
|||
if (!memcmp(¤t->adapter_luid, &luid, sizeof(LUID)))
|
||||
{
|
||||
list_remove(¤t->entry);
|
||||
vkd3d_free(current);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue