summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llvoavatarself.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index 79b235afae..695ea68ae8 100644
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -1772,7 +1772,8 @@ void LLVOAvatarSelf::timingLocalTexLoaded(BOOL success, LLViewerFetchedTexture *
}
ETextureIndex index = data->mIndex;
- if (index < 0 || index >= TEX_NUM_INDICES)
+
+if (index < 0 || index >= TEX_NUM_INDICES)
{
return;
}
@@ -1784,6 +1785,8 @@ void LLVOAvatarSelf::timingLocalTexLoaded(BOOL success, LLViewerFetchedTexture *
if (final)
{
delete data;
+ // for debugging, apparently there is a case in which we are keeping old de-allocated structures around in callbacks
+ *data = NULL;
}
}