summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-14 23:19:56 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-14 23:19:56 +0300
commit89f8877613df9809cb7d7f6d17b66fc3980037b6 (patch)
tree7486d7a22b2466ef6817e76da6d3558be33d0e5e /indra
parent00764cc236d8a7a794b2522dbc8577f35f290dd4 (diff)
SL-13980 Fixed preview cleanup
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llmodelpreview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index d60d1d748e..a9e80ab5da 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -245,6 +245,12 @@ LLModelPreview::~LLModelPreview()
{
mModelLoader->shutdown();
}
+
+ if (mPreviewAvatar)
+ {
+ mPreviewAvatar->markDead();
+ mPreviewAvatar = NULL;
+ }
}
U32 LLModelPreview::calcResourceCost()