summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowsdl.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
committerJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
commit98740db8fd5875033d08b6aef6d9bf5c3c49eeee (patch)
treedd0e83734e50ffd4d9f87eb2ed4091f867f2f1fd /indra/llwindow/llwindowsdl.cpp
parentaa96d1fddff3d5bf68a5014229a0d20584937222 (diff)
svn merge -r 59826:59968 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
Diffstat (limited to 'indra/llwindow/llwindowsdl.cpp')
-rw-r--r--indra/llwindow/llwindowsdl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index ba007abb5c..3f1aa1a469 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -1852,7 +1852,7 @@ void LLWindowSDL::gatherInput()
// the locale to protect it, as exotic/non-C locales
// causes our code lots of general critical weirdness
// and crashness. (SL-35450)
- char *saved_locale = setlocale(LC_ALL, NULL);
+ std::string saved_locale = setlocale(LC_ALL, NULL);
// Do a limited number of pumps so SL doesn't starve!
// FIXME - this should ideally be time-limited, not count-limited.
@@ -1861,8 +1861,7 @@ void LLWindowSDL::gatherInput()
if (gtk_events_pending())
gtk_main_iteration();
- if (saved_locale)
- setlocale(LC_ALL, saved_locale);
+ setlocale(LC_ALL, saved_locale.c_str() );
}
#endif // LL_GTK && LL_LIBXUL_ENABLED