summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ow <mow@icu-project.org>2015-12-31 21:12:07 +0000
committerFredrik Roubert <roubert@google.com>2016-01-28 16:45:18 +0100
commit5647259b90227841e95aa2e45024b3de667c357b (patch)
treebc423f9498b62d960cfa389f9b6c11d094229c23
parent464521eaa47f4263832e44561534cdaac08200cf (diff)
downloadicu-5647259b90227841e95aa2e45024b3de667c357b.tar.gz
Cherry-pick: ticket:12030: Update destructor to delete all patterns
http://bugs.icu-project.org/trac/changeset/38148 Change-Id: I77b3e65b176394114ec2ca4026ff91f24786c64b
-rw-r--r--icu4c/source/i18n/measfmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/icu4c/source/i18n/measfmt.cpp b/icu4c/source/i18n/measfmt.cpp
index a73ff6eaf..b54f8609c 100644
--- a/icu4c/source/i18n/measfmt.cpp
+++ b/icu4c/source/i18n/measfmt.cpp
@@ -167,7 +167,7 @@ MeasureFormatCacheData::~MeasureFormatCacheData() {
}
for (int32_t i = 0; i < MEAS_UNIT_COUNT; ++i) {
for (int32_t j = 0; j < WIDTH_INDEX_COUNT; ++j) {
- for (int32_t k = 0; k < StandardPlural::COUNT; ++k) {
+ for (int32_t k = 0; k < PATTERN_COUNT; ++k) {
delete patterns[i][j][k];
}
}