Skip to content

Commit 88fdeef

Browse files
committed
#4357 Crash in LLMeshRepoThread::lodReceived
1 parent 604e4f6 commit 88fdeef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

indra/newview/llmeshrepository.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,6 +2395,11 @@ EMeshProcessingResult LLMeshRepoThread::lodReceived(const LLVolumeParams& mesh_p
23952395
// might be good idea to turn mesh into pointer to avoid making a copy
23962396
mesh.mVolume = NULL;
23972397
}
2398+
{
2399+
// make sure skin info is not removed from list while we are decreasing reference count
2400+
LLMutexLock lock(mSkinMapMutex);
2401+
skin_info = nullptr;
2402+
}
23982403
return MESH_OK;
23992404
}
24002405
}

0 commit comments

Comments
 (0)