mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-12091 Fixed a memory leak introduced by the quick patch in transliterator initialization code.
X-SVN-Rev: 38290
This commit is contained in:
parent
585625c5f6
commit
22c3a94854
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue