X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f3c0d7a59d99c2a94c6b8822291f0e42be3773c9..1546d4af2ed1219a41ef4170bf188f2ab91442e6:/icuSources/common/ustr_cnv.cpp diff --git a/icuSources/common/ustr_cnv.cpp b/icuSources/common/ustr_cnv.cpp index 38f4d821..97c78bfa 100644 --- a/icuSources/common/ustr_cnv.cpp +++ b/icuSources/common/ustr_cnv.cpp @@ -28,6 +28,7 @@ #include "cmemory.h" #include "umutex.h" #include "ustr_cnv.h" +#include "ucnv_bld.h" /* mutexed access to a shared default converter ----------------------------- */ @@ -68,8 +69,8 @@ u_releaseDefaultConverter(UConverter *converter) if (converter != NULL) { ucnv_reset(converter); } + ucnv_enableCleanup(); umtx_lock(NULL); - if(gDefaultConverter == NULL) { gDefaultConverter = converter; converter = NULL;