mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
Fix major bug with dangling pointer after failed resource creation
This commit is contained in:
parent
d6769572f8
commit
9586dbdced
@ -3386,6 +3386,7 @@ HRESULT AllocatorPimpl::CreateResource(
|
||||
else
|
||||
{
|
||||
(*ppAllocation)->Release();
|
||||
*ppAllocation = NULL;
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user