Skip to content
Snippets Groups Projects
Commit d31e6735 authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

fix a crash

parent d696977c
No related branches found
No related tags found
No related merge requests found
...@@ -1687,6 +1687,10 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk) ...@@ -1687,6 +1687,10 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk)
mChunkHashList[start_key] = chunk->mHashNext ; mChunkHashList[start_key] = chunk->mHashNext ;
chunk->mHashNext = NULL ; chunk->mHashNext = NULL ;
if(start_key == end_key)
{
return ; //done
}
if(mChunkHashList[end_key] != chunk) if(mChunkHashList[end_key] != chunk)
{ {
......
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