Fixup minor use after free issues, and improper mutex usage in meshrepo. Also fixed some compiler warnings.

This commit is contained in:
Shyotl
2020-03-15 00:46:57 -05:00
parent d2d172f6ec
commit 26976b715d
6 changed files with 35 additions and 29 deletions

View File

@@ -596,7 +596,7 @@ BOOL LLSurface::idleUpdate(F32 max_update_time)
// Always call updateNormals() / updateVerticalStats()
// every frame to avoid artifacts
for (auto& it = mDirtyPatchList.cbegin(); it != mDirtyPatchList.cend();)
for (auto it = mDirtyPatchList.cbegin(); it != mDirtyPatchList.cend();)
{
if (it->second.expired())
{