Skip to content
Snippets Groups Projects
Commit 3aed137a authored by Tofu Linden's avatar Tofu Linden
Browse files

CID-101

Checker: INVALIDATE_ITERATOR
Function: LLTextureCache::writeComplete(unsigned int, bool)
File: /indra/newview/lltexturecache.cpp

not really a bug, but rearranged a little.
parent 599e96f3
No related branches found
No related tags found
No related merge requests found
...@@ -1617,20 +1617,19 @@ bool LLTextureCache::writeComplete(handle_t handle, bool abort) ...@@ -1617,20 +1617,19 @@ bool LLTextureCache::writeComplete(handle_t handle, bool abort)
{ {
lockWorkers(); lockWorkers();
handle_map_t::iterator iter = mWriters.find(handle); handle_map_t::iterator iter = mWriters.find(handle);
llassert_always(iter != mWriters.end()); if (llverify(iter != mWriters.end()))
LLTextureCacheWorker* worker = iter->second;
if (worker->complete() || abort)
{ {
mWriters.erase(handle); LLTextureCacheWorker* worker = iter->second;
unlockWorkers(); if (worker->complete() || abort)
worker->scheduleDelete(); {
return true; mWriters.erase(handle);
} unlockWorkers();
else worker->scheduleDelete();
{ return true;
unlockWorkers(); }
return false;
} }
unlockWorkers();
return false;
} }
void LLTextureCache::prioritizeWrite(handle_t handle) void LLTextureCache::prioritizeWrite(handle_t handle)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment