summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-05-11 14:41:23 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-05-11 14:41:23 -0600
commitd31e6735370711088f01cff448aa22f71c4c10c4 (patch)
tree17045d5e85e4b75b72b671ad1bfe268272df58e1 /indra
parentd696977c705929b944359f4a5bbb7501645f62bc (diff)
fix a crash
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/llmemory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index 4143f630c8..629e76f341 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -1687,6 +1687,10 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk)
mChunkHashList[start_key] = chunk->mHashNext ;
chunk->mHashNext = NULL ;
+ if(start_key == end_key)
+ {
+ return ; //done
+ }
if(mChunkHashList[end_key] != chunk)
{