mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-12614 DateFormatSymbols resource bundle data loading update. Fix memory leak in MessageFormat.
X-SVN-Rev: 38973
This commit is contained in:
parent
578ec591e0
commit
7708a760c0
1 changed files with 4 additions and 2 deletions
|
@ -1923,7 +1923,9 @@ initLeapMonthPattern(UnicodeString *field, int32_t index, CalendarDataSink &sink
|
|||
} else {
|
||||
field[index].setToBogus();
|
||||
}
|
||||
return;
|
||||
}
|
||||
status = U_MISSING_RESOURCE_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2123,7 +2125,7 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
|
|||
if (status == U_MISSING_RESOURCE_ERROR) {
|
||||
ures_close(ctb);
|
||||
if (uprv_strcmp(calendarTypeCArray, gGregorianTag) != 0) {
|
||||
calendarType.setTo(TRUE, kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
|
||||
calendarType.setTo(FALSE, kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
|
||||
calendarSink.visitAllResources();
|
||||
status = oldStatus;
|
||||
continue;
|
||||
|
@ -2146,7 +2148,7 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
|
|||
|
||||
// Gregorian is always the last fallback
|
||||
if (calendarType.isBogus()) {
|
||||
calendarType.setTo(kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
|
||||
calendarType.setTo(FALSE, kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
|
||||
calendarSink.visitAllResources();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue