Fix access violation crash in LLVOCache
parent
b986092076
commit
29811637a4
|
|
@ -1929,13 +1929,13 @@ void LLVOCache::removeGenericExtrasForHandle(U64 handle)
|
|||
auto* entry = mHandleEntryMap[handle];
|
||||
if (entry)
|
||||
{
|
||||
LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << entry->mHandle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL;
|
||||
removeEntry(entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
//shouldn't happen, but if it does, we should remove the extras file since it's orphaned
|
||||
LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << entry->mHandle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL;
|
||||
LLFile::remove(getObjectCacheExtrasFilename(entry->mHandle));
|
||||
LLFile::remove(getObjectCacheExtrasFilename(handle));
|
||||
}
|
||||
}
|
||||
// </FS:Beq>
|
||||
|
|
|
|||
Loading…
Reference in New Issue