diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-10-25 17:48:37 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-10-25 17:48:37 -0600 |
commit | 67c77496248c13a9770df6823e49d6fba522df7e (patch) | |
tree | a01bce8cd52422a41c1cecde3697388b09c63c4e /indra | |
parent | 0cc30aec0f11ff22025a554782904aa0b5fa9363 (diff) |
debug code for SH-2623: crash at LLViewerTextureList::removeImageFromList()
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 92d2762ef3..01eb384872 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -530,9 +530,11 @@ void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image) } llerrs << "LLViewerTextureList::removeImageFromList - Image not in list" << llendl; } - if(mImageList.erase(image) != 1) + + S32 count = mImageList.erase(image) ; + if(count != 1) { - llerrs << "Error happens when remove image from mImageList!" << llendl ; + llerrs << "Error happens when remove image from mImageList: " << count << llendl ; } image->setInImageList(FALSE) ; |