]> granicus.if.org Git - icu/commitdiff
ICU-8718 Close opened resource bundle in TimeZoneFormat
authorMichael Ow <mow@svn.icu-project.org>
Thu, 1 Mar 2012 18:11:32 +0000 (18:11 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 1 Mar 2012 18:11:32 +0000 (18:11 +0000)
X-SVN-Rev: 31556

icu4c/source/i18n/tzfmt.cpp

index a1ad9bd1a43baeb499d6461a1fd39673ead5c206..79210ad0e27e78dfd6f284de0102b7ab1af33567 100644 (file)
@@ -290,6 +290,8 @@ TimeZoneFormat::TimeZoneFormat(const Locale& locale, UErrorCode& status)
         if (len > 0) {
             hourFormats = resStr;
         }
+        ures_close(zoneStringsArray);
+        ures_close(zoneBundle);
     }
 
     if (gmtPattern == NULL) {