Use SAFE_RELEASE for destroying command lists in case of device removed

This commit is contained in:
baldurk
2023-02-06 11:28:24 +00:00
parent ab653e7063
commit ed548d4a45
+1 -1
View File
@@ -4316,7 +4316,7 @@ RDResult WrappedID3D12Device::ReadLogInitialisation(RDCFile *rdc, bool storeStru
for(auto it = cmd.m_BakedCmdListInfo.begin(); it != cmd.m_BakedCmdListInfo.end(); it++)
{
for(size_t i = 0; i < it->second.crackedLists.size(); i++)
it->second.crackedLists[i]->Release();
SAFE_RELEASE(it->second.crackedLists[i]);
it->second.crackedLists.clear();
}