ICU-5955 Remove unneeded object from PluralRules::forLocale().

X-SVN-Rev: 23733
This commit is contained in:
Michael Ow 2008-04-02 23:03:55 +00:00
parent f449a2bc14
commit 1e0b45a68a

View file

@ -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);
}