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;
|
UnicodeString fbString;
|
||||||
StringEnumeration *tzKeys = TimeZone::createEnumeration();
|
StringEnumeration *tzKeys = TimeZone::createEnumeration();
|
||||||
|
|
||||||
tzKeys->reset(status);
|
|
||||||
while( (myKey=tzKeys->snext(status))!= NULL){
|
while( (myKey=tzKeys->snext(status))!= NULL){
|
||||||
status = U_ZERO_ERROR;
|
status = U_ZERO_ERROR;
|
||||||
this->getFallbackString(*myKey,fbString,status);
|
this->getFallbackString(*myKey,fbString,status);
|
||||||
@ -2266,9 +2265,10 @@ DateFormatSymbols::findZoneIDTypeValue( UnicodeString& zid, const UnicodeString&
|
|||||||
type = (TimeZoneTranslationType) TIMEZONE_LONG_GENERIC;
|
type = (TimeZoneTranslationType) TIMEZONE_LONG_GENERIC;
|
||||||
value.setTo(fbString);
|
value.setTo(fbString);
|
||||||
zid.setTo(*myKey);
|
zid.setTo(*myKey);
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
delete tzKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
UnicodeString
|
UnicodeString
|
||||||
|
Loading…
Reference in New Issue
Block a user