mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38: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);
|
ID3D12CommandQueue_Release(this->commandQueue);
|
||||||
|
|
||||||
if (this->device)
|
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);
|
free(this);
|
||||||
this = NULL;
|
this = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user