fix for EXT-6420: crash at LLImageRaw::LLImageRaw [secondlife-bin llimage.cpp:271]

master
Xiaohong Bao 2010-03-17 16:41:28 -06:00
parent 8e1f7ecaf3
commit 56ccf4d0be
1 changed files with 7 additions and 4 deletions

View File

@ -2262,11 +2262,14 @@ void LLViewerFetchedTexture::destroyRawImage()
{
sRawCount--;
if(mForceToSaveRawImage)
if(mIsRawImageValid)
{
saveRawImage() ;
}
setCachedRawImage() ;
if(mForceToSaveRawImage)
{
saveRawImage() ;
}
setCachedRawImage() ;
}
}
mRawImage = NULL;