Fix major bug with dangling pointer after failed resource creation

This commit is contained in:
Adam Sawicki 2019-11-05 15:33:07 +01:00
parent d6769572f8
commit 9586dbdced

View File

@ -3386,6 +3386,7 @@ HRESULT AllocatorPimpl::CreateResource(
else
{
(*ppAllocation)->Release();
*ppAllocation = NULL;
return hr;
}
}