summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorStinson Linden <stinson@lindenlab.com>2014-06-06 19:30:41 +0100
committerStinson Linden <stinson@lindenlab.com>2014-06-06 19:30:41 +0100
commit61f3bf8a4799016f6a50007314816cddb1dff030 (patch)
tree8fb07213d0f8ede502067bcc5a0d8bd6252414c1 /indra
parentbde6023286c899c99104b16181203f7b58819333 (diff)
MAINT-4137: Correcting a potential crash. This change should fix the most probable location of a callstack being reported by the crash reporter. However, there is no reproduction yet, so hard to test whether this actually patches the crash occcurrence.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/lllocalbitmaps.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index 92587a911a..6d1a240ce5 100755
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -213,8 +213,11 @@ bool LLLocalBitmap::updateSelf(EUpdateType optional_firstupdate)
// remove old_id from gimagelist
LLViewerFetchedTexture* image = gTextureList.findImage(old_id);
- gTextureList.deleteImage(image);
- image->unref();
+ if (image != NULL)
+ {
+ gTextureList.deleteImage(image);
+ image->unref();
+ }
}
mUpdateRetries = LL_LOCAL_UPDATE_RETRIES;