diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 18647e4ea8..a3951ca24d 100755 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -105,7 +105,15 @@ LLPreviewTexture::~LLPreviewTexture() { getWindow()->decBusyCount(); } - mImage->setBoostLevel(mImageOldBoostLevel); + + // mImage can be 0. + // mImage->setBoostLevel(mImageOldBoostLevel); + + if( mImage ) + mImage->setBoostLevel(mImageOldBoostLevel); + + // + mImage = NULL; } @@ -848,7 +856,7 @@ void LLPreviewTexture::loadAsset() mImage->setBoostLevel(LLGLTexture::BOOST_PREVIEW); mImage->forceToSaveRawImage(0) ; // texture comment decoder - mImage->setLoadedCallback(LLPreviewTexture::onTextureLoaded, 0, TRUE, FALSE, this, NULL); + mImage->setLoadedCallback(LLPreviewTexture::onTextureLoaded, 0, TRUE, FALSE, this, &mCallbackTextureList); // mAssetStatus = PREVIEW_ASSET_LOADING; mUpdateDimensions = TRUE;