]> granicus.if.org Git - icu/commitdiff
ICU-9042 Memory leak in Time Unit Format.
authorAndy Heninger <andy.heninger@gmail.com>
Tue, 12 Jun 2012 18:23:49 +0000 (18:23 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Tue, 12 Jun 2012 18:23:49 +0000 (18:23 +0000)
X-SVN-Rev: 31943

icu4c/source/i18n/tmutfmt.cpp

index e2394ed3ab9919e0e99f450bb7feb869e72c2c59..19840508b1d698a1f1d5a1fab36e237c1c99b51f 100644 (file)
@@ -400,6 +400,7 @@ TimeUnitFormat::setup(UErrorCode& err) {
     checkConsistency(UTMUTFMT_FULL_STYLE, gUnitsTag, err);
     readFromCurrentLocale(UTMUTFMT_ABBREVIATED_STYLE, gShortUnitsTag, pluralCounts, err);
     checkConsistency(UTMUTFMT_ABBREVIATED_STYLE, gShortUnitsTag, err);
+    delete keywords;
 }