ICU-5708 Fix a memory leak.
X-SVN-Rev: 22300
This commit is contained in:
parent
4337b47506
commit
0977182319
@ -2253,7 +2253,6 @@ DateFormatSymbols::findZoneIDTypeValue( UnicodeString& zid, const UnicodeString&
|
||||
UnicodeString fbString;
|
||||
StringEnumeration *tzKeys = TimeZone::createEnumeration();
|
||||
|
||||
tzKeys->reset(status);
|
||||
while( (myKey=tzKeys->snext(status))!= NULL){
|
||||
status = U_ZERO_ERROR;
|
||||
this->getFallbackString(*myKey,fbString,status);
|
||||
@ -2266,9 +2265,10 @@ DateFormatSymbols::findZoneIDTypeValue( UnicodeString& zid, const UnicodeString&
|
||||
type = (TimeZoneTranslationType) TIMEZONE_LONG_GENERIC;
|
||||
value.setTo(fbString);
|
||||
zid.setTo(*myKey);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
delete tzKeys;
|
||||
}
|
||||
|
||||
UnicodeString
|
||||
|
Loading…
Reference in New Issue
Block a user