]> granicus.if.org Git - icu/commitdiff
ICU-12030 Update destructor to delete all patterns
authorMichael Ow <mow@svn.icu-project.org>
Thu, 31 Dec 2015 21:12:07 +0000 (21:12 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 31 Dec 2015 21:12:07 +0000 (21:12 +0000)
X-SVN-Rev: 38148

icu4c/source/i18n/measfmt.cpp

index b37bc19d27964fd0923d3a64f987f305cd28c22c..1af72e9da8d2344a1828ecf3862c37b1e3ec7a52 100644 (file)
@@ -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];
             }
         }