ICU-1953 clean up code for heap allocation failure hadling.
X-SVN-Rev: 9088
This commit is contained in:
parent
f56bfccab5
commit
6ac9e67aa2
@ -188,10 +188,10 @@ RBBIRuleBuilder::createRuleBasedBreakIterator( const UnicodeString &rules,
|
||||
// and list of all Unicode Sets referenced by the rules.
|
||||
//
|
||||
RBBIRuleBuilder builder(rules, parseError, status);
|
||||
builder.fScanner->parse();
|
||||
if (U_FAILURE(status)) {
|
||||
return NULL;
|
||||
}
|
||||
builder.fScanner->parse();
|
||||
|
||||
//
|
||||
// UnicodeSet processing.
|
||||
|
Loading…
Reference in New Issue
Block a user