mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-8638 Merge memory leak fix r30388 into 4.8.1
X-SVN-Rev: 30389
This commit is contained in:
parent
8c82e45fb2
commit
f40e8ff69c
1 changed files with 3 additions and 0 deletions
|
@ -420,6 +420,9 @@ PluralRules::parseDescription(UnicodeString& data, RuleChain& rules, UErrorCode
|
|||
}
|
||||
ruleChain=ruleChain->next=new RuleChain();
|
||||
}
|
||||
if (ruleChain->ruleHeader != NULL) {
|
||||
delete ruleChain->ruleHeader;
|
||||
}
|
||||
orNode = ruleChain->ruleHeader = new OrConstraint();
|
||||
curAndConstraint = orNode->add();
|
||||
ruleChain->keyword = token;
|
||||
|
|
Loading…
Add table
Reference in a new issue