summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-04-04 12:34:31 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2024-04-04 19:10:53 +0200
commitf17d86889f8147095bfe2b966df2da834b1c00c6 (patch)
tree870e24155925def427c98b819342f37a19668154
parentd9f7cd36a718785bb8269cb444faf163dc04fe1b (diff)
secondlife/viewer#984 BugSplat Crash: LLLoadedCallbackEntry::removeTexture(146)
-rw-r--r--indra/newview/llviewertexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index c70d2423e0..ea7a8dbf13 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -144,7 +144,7 @@ LLLoadedCallbackEntry::~LLLoadedCallbackEntry()
void LLLoadedCallbackEntry::removeTexture(LLViewerFetchedTexture* tex)
{
- if(mSourceCallbackList)
+ if (mSourceCallbackList && tex)
{
mSourceCallbackList->erase(LLTextureKey(tex->getID(), (ETexListType)tex->getTextureListType()));
}