mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-11 16:03:20 +00:00
Clean up parsers in error case
This commit is contained in:
parent
175da21130
commit
dca746ad08
1 changed files with 1 additions and 0 deletions
|
@ -1056,6 +1056,7 @@ static void initDateParsersOnce(UErrorCode& errorCode) {
|
|||
|
||||
if (!dateParser || !dateTimeParser || !dateTimeUTCParser || !dateTimeZoneParser) {
|
||||
errorCode = U_MEMORY_ALLOCATION_ERROR;
|
||||
mf2_date_parsers_cleanup();
|
||||
return;
|
||||
}
|
||||
ucln_i18n_registerCleanup(UCLN_I18N_MF2_DATE_PARSERS, mf2_date_parsers_cleanup);
|
||||
|
|
Loading…
Add table
Reference in a new issue