]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/brkeng.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / brkeng.cpp
index 80e11585f82a50c7cb39fd45bd240fe07a5de9f2..78492db66201f1cbdd42767ea41c276dc20b0dac 100644 (file)
@@ -129,8 +129,8 @@ ICULanguageBreakFactory::getEngineFor(UChar32 c) {
     const LanguageBreakEngine *lbe = NULL;
     UErrorCode  status = U_ZERO_ERROR;
 
-    static UMutex *gBreakEngineMutex = STATIC_NEW(UMutex);
-    Mutex m(gBreakEngineMutex);
+    static UMutex gBreakEngineMutex;
+    Mutex m(&gBreakEngineMutex);
 
     if (fEngines == NULL) {
         UStack  *engines = new UStack(_deleteEngine, NULL, status);