summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-06-07 00:22:49 -0500
committerDave Parks <davep@lindenlab.com>2011-06-07 00:22:49 -0500
commit81af06c95490a54e69b6bbf01ae2ef98adb66a02 (patch)
treebe38a2b0ae2994a82dffd92a7ec8be34d370c08b /indra
parentb90bc83f3d7bb8a7c0d953dd2792c1901d5a1e72 (diff)
Fix for crash on clicking cancel while a model is still loading.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 675edd7643..1f6199ffb2 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -2787,7 +2787,7 @@ LLModelPreview::~LLModelPreview()
{
if (mModelLoader)
{
- delete mModelLoader;
+ mModelLoader->mPreview = NULL;
mModelLoader = NULL;
}
//*HACK : *TODO : turn this back on when we understand why this crashes