diff options
author | Kitty Barnett <develop@catznip.com> | 2016-02-13 15:29:02 +0100 |
---|---|---|
committer | Kitty Barnett <develop@catznip.com> | 2016-02-13 15:29:02 +0100 |
commit | 26bd519536f5e450811fda4a876c054a336f406d (patch) | |
tree | 98408b678f25a3398be2fef4a0f96e7d89e602c9 | |
parent | d405e8da7ba2d4b9e4704ed8d4a3dcf9a3a4dfe1 (diff) |
FIXED Crash in LLPreviewTexture destructor
-rwxr-xr-x | indra/newview/llpreviewtexture.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index c8cf0faa15..2a2c51be40 100755 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -89,8 +89,12 @@ LLPreviewTexture::~LLPreviewTexture() { getWindow()->decBusyCount(); } - mImage->setBoostLevel(mImageOldBoostLevel); - mImage = NULL; + + if (mImage.notNull()) + { + mImage->setBoostLevel(mImageOldBoostLevel); + mImage = NULL; + } } // virtual |