]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/io/locbund.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / io / locbund.cpp
index 4b6fe34c29e8cfa75ceb877dd40d246b5479aa03..46c97bc043eec8bea6c20e72addbc8dc5cd15ce5 100644 (file)
@@ -47,8 +47,8 @@ U_CDECL_END
 
 static inline UNumberFormat * copyInvariantFormatter(ULocaleBundle *result, UNumberFormatStyle style) {
     U_NAMESPACE_USE
-    static UMutex *gLock = STATIC_NEW(UMutex);
-    Mutex lock(gLock);
+    static UMutex gLock;
+    Mutex lock(&gLock);
     if (result->fNumberFormat[style-1] == NULL) {
         if (gPosixNumberFormat[style-1] == NULL) {
             UErrorCode status = U_ZERO_ERROR;