summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatercolorpicker.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-01-03 09:41:16 -0800
committerRichard Linden <none@none>2012-01-03 09:41:16 -0800
commit3861249a749c99c2a7b05d15ef82f8ff21453d05 (patch)
treedcc087fe66d15634fde03e7a4bfaf5b8c7c0dab6 /indra/newview/llfloatercolorpicker.cpp
parent0c0ff35d19969cc762dce510a4d5ee4649d96a24 (diff)
use lazy deletion of views via die() method to avoid some potential crashes
Diffstat (limited to 'indra/newview/llfloatercolorpicker.cpp')
-rw-r--r--indra/newview/llfloatercolorpicker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatercolorpicker.cpp b/indra/newview/llfloatercolorpicker.cpp
index 659e52271a..05d73c2416 100644
--- a/indra/newview/llfloatercolorpicker.cpp
+++ b/indra/newview/llfloatercolorpicker.cpp
@@ -271,7 +271,7 @@ void LLFloaterColorPicker::destroyUI ()
if ( mSwatchView )
{
this->removeChild ( mSwatchView );
- delete mSwatchView;
+ mSwatchView->die();;
mSwatchView = NULL;
}
}