diff options
| author | Richard Linden <none@none> | 2012-01-03 09:41:16 -0800 |
|---|---|---|
| committer | Richard Linden <none@none> | 2012-01-03 09:41:16 -0800 |
| commit | 3861249a749c99c2a7b05d15ef82f8ff21453d05 (patch) | |
| tree | dcc087fe66d15634fde03e7a4bfaf5b8c7c0dab6 /indra/newview/llfloatersnapshot.cpp | |
| parent | 0c0ff35d19969cc762dce510a4d5ee4649d96a24 (diff) | |
use lazy deletion of views via die() method to avoid some potential crashes
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
| -rw-r--r-- | indra/newview/llfloatersnapshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index 1b3290d5a8..2dd031b5d3 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -1977,7 +1977,7 @@ LLFloaterSnapshot::LLFloaterSnapshot(const LLSD& key) // Destroys the object LLFloaterSnapshot::~LLFloaterSnapshot() { - delete impl.mPreviewHandle.get(); + if (impl.mPreviewHandle.get()) impl.mPreviewHandle.get()->die(); //unfreeze everything else gSavedSettings.setBOOL("FreezeTime", FALSE); |
