mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
dxgi: check for memory leaks in d3d12
This commit is contained in:
parent
f8b4874799
commit
99536eaf9d
@ -328,7 +328,11 @@ static void d3d12_free(void)
|
||||
ID3D12CommandQueue_Release(this->commandQueue);
|
||||
|
||||
if (this->device)
|
||||
ID3D12Device_Release(this->device);
|
||||
{
|
||||
DWORD count = ID3D12Device_Release(this->device);
|
||||
if (count != 0)
|
||||
DEBUG_ERROR("ID3D12Device release is %lu, there is a memory leak!", count);
|
||||
}
|
||||
|
||||
free(this);
|
||||
this = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user