mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-5955 Remove unneeded object from PluralRules::forLocale().
X-SVN-Rev: 23733
This commit is contained in:
parent
f449a2bc14
commit
1e0b45a68a
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ PluralRules::forLocale(const Locale& locale, UErrorCode& status) {
|
|||
}
|
||||
}
|
||||
if (locRules==NULL) {
|
||||
delete newRules; // Remove newRules to avoid memory leak since it is not needed anymore.
|
||||
return createRules(PLURAL_DEFAULT_RULE, status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue