Author: joerg
Date: Thu May  9 18:06:35 2013
New Revision: 181559

URL: http://llvm.org/viewvc/llvm-project?rev=181559&view=rev
Log:
Don't try to free the C locale.

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=181559&r1=181558&r2=181559&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Thu May  9 18:06:35 2013
@@ -1393,7 +1393,7 @@ codecvt<wchar_t, char, mbstate_t>::codec
 
 codecvt<wchar_t, char, mbstate_t>::~codecvt()
 {
-    if (__l != 0)
+    if (__l != _LIBCPP_GET_C_LOCALE)
         freelocale(__l);
 }
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to