mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5708 Fix a memory leak.
X-SVN-Rev: 22300
This commit is contained in:
parent
4337b47506
commit
0977182319
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue