ICU-6132 Fix previous change.
X-SVN-Rev: 23408
This commit is contained in:
parent
b62b973812
commit
fb5e448868
@ -176,6 +176,17 @@ static UBool gDefaultConverterContainsOption;
|
||||
|
||||
static const char DATA_TYPE[] = "cnv";
|
||||
|
||||
static void
|
||||
ucnv_flushAvailableConverterCache() {
|
||||
if (gAvailableConverters) {
|
||||
umtx_lock(&cnvCacheMutex);
|
||||
gAvailableConverterCount = 0;
|
||||
uprv_free((char **)gAvailableConverters);
|
||||
gAvailableConverters = NULL;
|
||||
umtx_unlock(&cnvCacheMutex);
|
||||
}
|
||||
}
|
||||
|
||||
/* ucnv_cleanup - delete all storage held by the converter cache, except any */
|
||||
/* in use by open converters. */
|
||||
/* Not thread safe. */
|
||||
@ -949,17 +960,6 @@ ucnv_createConverterFromSharedData(UConverter *myUConverter,
|
||||
return myUConverter;
|
||||
}
|
||||
|
||||
static void
|
||||
ucnv_flushAvailableConverterCache() {
|
||||
if (gAvailableConverters) {
|
||||
umtx_lock(&cnvCacheMutex);
|
||||
gAvailableConverterCount = 0;
|
||||
uprv_free((char **)gAvailableConverters);
|
||||
gAvailableConverters = NULL;
|
||||
umtx_unlock(&cnvCacheMutex);
|
||||
}
|
||||
}
|
||||
|
||||
/*Frees all shared immutable objects that aren't referred to (reference count = 0)
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
|
Loading…
Reference in New Issue
Block a user