summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2009-12-29 17:42:54 -0700
committerXiaohong Bao <bao@lindenlab.com>2009-12-29 17:42:54 -0700
commit10c66905613b91e6b3cf1fd3f8455a8ed8e243a4 (patch)
treefe1428108bd95cc2be005b1f0b78b9b2abe05f08
parent5c8c4c9de14816d61766d128731b3a42ccad7f0c (diff)
fix for EXT-3553: unknown Crash.
-rw-r--r--indra/newview/lltexturecache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp
index 845e71378a..051c189013 100644
--- a/indra/newview/lltexturecache.cpp
+++ b/indra/newview/lltexturecache.cpp
@@ -934,6 +934,8 @@ void LLTextureCache::setDirNames(ELLPath location)
void LLTextureCache::purgeCache(ELLPath location)
{
+ LLMutexLock lock(&mHeaderMutex);
+
if (!mReadOnly)
{
setDirNames(location);