diff --git a/icu4c/source/i18n/dangical.cpp b/icu4c/source/i18n/dangical.cpp index 5d517ec2b8a..489821baf60 100644 --- a/icu4c/source/i18n/dangical.cpp +++ b/icu4c/source/i18n/dangical.cpp @@ -128,7 +128,7 @@ const TimeZone* DangiCalendar::getDangiCalZoneAstroCalc(void) const { gDangiCalendarZoneAstroCalc = NULL; } gDangiCalendarZoneAstroCalcInitialized = TRUE; - ucln_i18n_registerCleanup(UCLN_I18N_CHINESE_CALENDAR, calendar_dangi_cleanup); + ucln_i18n_registerCleanup(UCLN_I18N_DANGI_CALENDAR, calendar_dangi_cleanup); } } umtx_unlock(&dangiLock); diff --git a/icu4c/source/i18n/ucln_in.h b/icu4c/source/i18n/ucln_in.h index 2e94a83f229..c27bfa8027c 100644 --- a/icu4c/source/i18n/ucln_in.h +++ b/icu4c/source/i18n/ucln_in.h @@ -34,6 +34,7 @@ typedef enum ECleanupI18NType { UCLN_I18N_CHINESE_CALENDAR, UCLN_I18N_HEBREW_CALENDAR, UCLN_I18N_ASTRO_CALENDAR, + UCLN_I18N_DANGI_CALENDAR, UCLN_I18N_CALENDAR, UCLN_I18N_TIMEZONEFORMAT, UCLN_I18N_TIMEZONEGENERICNAMES, diff --git a/icu4c/source/test/cintltst/capitst.c b/icu4c/source/test/cintltst/capitst.c index 3851e8ce871..7bbc5a78a4e 100644 --- a/icu4c/source/test/cintltst/capitst.c +++ b/icu4c/source/test/cintltst/capitst.c @@ -776,7 +776,6 @@ void TestSafeClone() { In the meantime, just turn the following former error into a log message. */ log_verbose("NOTE: Cloned collator did not use provided buffer, index %d, status %s, clone NULL? %d\n", idx, myErrorName(err), someClonedCollators[idx] == NULL); - return; } if (!ucol_equals(someClonedCollators[idx], someCollators[idx])) { log_err("FAIL: Cloned collator is not equal to original at index = %d.\n", idx); diff --git a/icu4c/source/test/cintltst/cmsccoll.c b/icu4c/source/test/cintltst/cmsccoll.c index 9853f2fa65f..32a4d0c74ba 100644 --- a/icu4c/source/test/cintltst/cmsccoll.c +++ b/icu4c/source/test/cintltst/cmsccoll.c @@ -653,6 +653,7 @@ static void testCollator(UCollator *coll, UErrorCode *status) { } } uprv_free(src.source); + uprv_free(src.reorderCodes); } } @@ -1287,6 +1288,7 @@ static void testCEs(UCollator *coll, UErrorCode *status) { lastContCE = currContCE & 0xFFFFFFBF; } uprv_free(src.source); + uprv_free(src.reorderCodes); } ucol_close(UCA); uprv_delete_collIterate(c);