ICU-5708 Fix a memory leak.

X-SVN-Rev: 22300
This commit is contained in:
George Rhoten 2007-08-07 09:01:12 +00:00
parent 4337b47506
commit 0977182319

View File

@ -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