summaryrefslogtreecommitdiff
path: root/icu4c/source/i18n/numrange_fluent.cpp
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2022-11-14 15:02:04 +0000
committerVictor Chang <vichang@google.com>2022-11-14 15:02:04 +0000
commit171e5430c389ca5e4a13ebd4d90b506cc163b074 (patch)
treeedf4388b3ced07caae4ed091ae7cd3886534e4d2 /icu4c/source/i18n/numrange_fluent.cpp
parent64605e412a6b8b972e259cb33dd629aaafa952a8 (diff)
downloadicu-171e5430c389ca5e4a13ebd4d90b506cc163b074.tar.gz
Copy ICU release-72-1 into aosp/icu72
Copy the files with the following commands: find icu4j/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\|adjust_icudt_path.mk\|liblayout-jarjar-rules.txt\|.gitignore\|AndroidTest.xml\)" -delete find icu4c/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\|.gitignore\|AndroidTest.xml\)" -delete cp -r ${UPSTREAM_ICU_GIT}/icu4j . cp -r ${UPSTREAM_ICU_GIT}/icu4c . git checkout HEAD -- icu4c/.gitignore icu4j/.gitignore rm -r tools/cldr cp -r ${UPSTREAM_ICU_GIT}/tools/cldr tools/cldr Change-Id: Ib4cc472068aca595503f67147f2aa968cb2b14c1
Diffstat (limited to 'icu4c/source/i18n/numrange_fluent.cpp')
-rw-r--r--icu4c/source/i18n/numrange_fluent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/icu4c/source/i18n/numrange_fluent.cpp b/icu4c/source/i18n/numrange_fluent.cpp
index f1060b3c2..c36defa36 100644
--- a/icu4c/source/i18n/numrange_fluent.cpp
+++ b/icu4c/source/i18n/numrange_fluent.cpp
@@ -354,6 +354,7 @@ LocalizedNumberRangeFormatter::getFormatter(UErrorCode& status) const {
// Try computing the formatter on our own
auto* temp = new NumberRangeFormatterImpl(fMacros, status);
if (U_FAILURE(status)) {
+ delete temp;
return nullptr;
}
if (temp == nullptr) {