diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llmedia/llmediaimplllmozlib.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmedia/llmediaimplllmozlib.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/llmedia/llmediaimplllmozlib.cpp b/linden/indra/llmedia/llmediaimplllmozlib.cpp index 53cb344..9e2564a 100644 --- a/linden/indra/llmedia/llmediaimplllmozlib.cpp +++ b/linden/indra/llmedia/llmediaimplllmozlib.cpp | |||
@@ -94,7 +94,8 @@ bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) | |||
94 | // the locale to protect it, as exotic/non-C locales | 94 | // the locale to protect it, as exotic/non-C locales |
95 | // causes our code lots of general critical weirdness | 95 | // causes our code lots of general critical weirdness |
96 | // and crashness. (SL-35450) | 96 | // and crashness. (SL-35450) |
97 | std::string saved_locale = setlocale(LC_ALL, NULL); | 97 | static std::string saved_locale; |
98 | saved_locale = setlocale(LC_ALL, NULL); | ||
98 | #endif // LL_LINUX | 99 | #endif // LL_LINUX |
99 | 100 | ||
100 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), | 101 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), |
@@ -132,7 +133,8 @@ bool LLMediaImplLLMozLib::init() | |||
132 | return false; | 133 | return false; |
133 | 134 | ||
134 | #if LL_LINUX | 135 | #if LL_LINUX |
135 | std::string saved_locale = setlocale(LC_ALL, NULL); | 136 | static std::string saved_locale; |
137 | saved_locale = setlocale(LC_ALL, NULL); | ||
136 | #endif // LL_LINUX | 138 | #endif // LL_LINUX |
137 | 139 | ||
138 | mWindowId = LLMozLib::getInstance()->createBrowserWindow( mBrowserWindowWidth, mBrowserWindowHeight ); | 140 | mWindowId = LLMozLib::getInstance()->createBrowserWindow( mBrowserWindowWidth, mBrowserWindowHeight ); |