ICU-6132 Fix previous change.

X-SVN-Rev: 23408
This commit is contained in:
George Rhoten 2008-02-10 17:52:27 +00:00
parent b62b973812
commit fb5e448868

View File

@ -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