From b99ced3996f9b5150f3cd02235a2a19533579235 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Sat, 20 Feb 2010 16:30:35 +0100 Subject: Fixed an error at shutdown (gSavedSettings.cleanup). --- linden/indra/newview/llappviewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 1eac043..e4cd3af 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp @@ -1371,7 +1371,6 @@ bool LLAppViewer::cleanup() // save all settings, even if equals defaults gCrashSettings.saveToFile(crash_settings_filename, FALSE); - gSavedSettings.cleanup(); gColors.cleanup(); gCrashSettings.cleanup(); @@ -1425,6 +1424,9 @@ bool LLAppViewer::cleanup() delete sImageDecodeThread; sImageDecodeThread = NULL; + gSavedSettings.cleanup();//do this after last time gSavedSettings is used *surprise* + + //Note: //LLViewerMedia::cleanupClass() has to be put before gImageList.shutdown() //because some new image might be generated during cleaning up media. --bao -- cgit v1.1