ICU-11131 on low memory situations, return U_MEMORY_ALLOCATION_ERROR instead of crash

X-SVN-Rev: 36430
This commit is contained in:
Steven R. Loomis 2014-09-10 15:39:02 +00:00
parent 38c650b526
commit 9e20f6ebb2

View file

@ -1081,6 +1081,7 @@ SimpleDateFormat::initNumberFormatters(const Locale &locale,UErrorCode &status)
}
} else {
status = U_MEMORY_ALLOCATION_ERROR;
return; // exit with the allocation error
}
}
umtx_unlock(&LOCK);