diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index 57ab3003f..ac57ff03b 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -2168,11 +2168,13 @@ void LLTextureFetch::removeRequest(LLTextureFetchWorker* worker, bool cancel, bo { if(!worker) { + if(!bNeedsLock) + unlockQueue() ; return; } - if(bNeedsLock) lockQueue() ; + size_t erased_1 = mRequestMap.erase(worker->mID); unlockQueue() ;