]> granicus.if.org Git - icu/commitdiff
ICU-12091 Fixed a memory leak introduced by the quick patch in transliterator initial...
authorYoshito Umaoka <y.umaoka@gmail.com>
Fri, 5 Feb 2016 16:05:39 +0000 (16:05 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Fri, 5 Feb 2016 16:05:39 +0000 (16:05 +0000)
X-SVN-Rev: 38290

icu4c/source/i18n/translit.cpp

index 1288a7d7b72ecb5426f6c63ddc76de913ca83704..b88533977cad747cebe69b3f01e1507a111ed045 100644 (file)
@@ -1511,6 +1511,7 @@ UBool Transliterator::initializeRegistry(UErrorCode &status) {
             if (U_SUCCESS(status)) {
                 UnicodeString id(ures_getKey(colBund), -1, US_INV);
                 if(id.indexOf(T_PART) != -1) {
+                    ures_close(colBund);
                     continue;
                 }
                 UResourceBundle* res = ures_getNextResource(colBund, NULL, &status);