summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorrichard <none@none>2010-02-05 14:20:27 -0800
committerrichard <none@none>2010-02-05 14:20:27 -0800
commite75a4ffb6ae085c941e1e1b779e987de0e6c80b6 (patch)
tree519f462dfa822488d3622cb1a32da09f8de250e9 /indra/newview/llviewerwindow.cpp
parent7735ef557d79ee80bb7ee9b36a49735d03a4cc22 (diff)
EXT-5026 - Crash when exiting from login screen
reviewed by Mani
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r--indra/newview/llviewerwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 315b7c52cf..4a86e1ca41 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1726,7 +1726,11 @@ void LLViewerWindow::shutdownViews()
// destroy the nav bar, not currently part of gViewerWindow
// *TODO: Make LLNavigationBar part of gViewerWindow
delete LLNavigationBar::getInstance();
-
+
+ // destroy menus after instantiating navbar above, as it needs
+ // access to gMenuHolder
+ cleanup_menus();
+
// Delete all child views.
delete mRootView;
mRootView = NULL;