diff --git a/src/D3D12MemAlloc.cpp b/src/D3D12MemAlloc.cpp index ff82d46..fdbbea9 100644 --- a/src/D3D12MemAlloc.cpp +++ b/src/D3D12MemAlloc.cpp @@ -3386,6 +3386,7 @@ HRESULT AllocatorPimpl::CreateResource( else { (*ppAllocation)->Release(); + *ppAllocation = NULL; return hr; } }