summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-02-14 17:09:42 -0600
committerDave Parks <davep@lindenlab.com>2012-02-14 17:09:42 -0600
commit52782548c83dc0ca0fc8352e1a3ad68784116a91 (patch)
tree908ac0c7317e2576bf5171ceca477e3d15ca428d /indra/newview/llappviewer.cpp
parentca179444a1fb56bb42896c735b23906460c40d88 (diff)
SH-2973 Rearrange shutdown operations to prevent crash on exit on OSX
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 3a257e1f1c..1174d108d2 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1487,6 +1487,9 @@ void LLAppViewer::flushVFSIO()
bool LLAppViewer::cleanup()
{
+ //ditch LLVOAvatarSelf instance
+ gAgentAvatarp = NULL;
+
// workaround for DEV-35406 crash on shutdown
LLEventPumps::instance().reset();
@@ -1769,8 +1772,6 @@ bool LLAppViewer::cleanup()
LLAvatarIconIDCache::getInstance()->save();
- gAgentAvatarp = NULL;
-
LLViewerMedia::saveCookieFile();
// Stop the plugin read thread if it's running.