From d31e6735370711088f01cff448aa22f71c4c10c4 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Wed, 11 May 2011 14:41:23 -0600 Subject: fix a crash --- indra/llcommon/llmemory.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra') 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) { -- cgit v1.2.3