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: 22301
This commit is contained in:
parent
0977182319
commit
4bb6b2f380
1 changed files with 5 additions and 4 deletions
|
@ -2075,10 +2075,11 @@ DateFormatSymbols::getFallbackString(const UnicodeString &zid, UnicodeString &re
|
|||
MessageFormat::format(pattern,countryArray, 1, result, status);
|
||||
}
|
||||
|
||||
if (thisZone) ures_close(thisZone);
|
||||
if (zoneFormatting) ures_close(zoneFormatting);
|
||||
if (supplementalDataBundle) ures_close(supplementalDataBundle);
|
||||
if (countries) ures_close(countries);
|
||||
ures_close(thisZone);
|
||||
ures_close(zoneFormatting);
|
||||
ures_close(supplementalDataBundle);
|
||||
ures_close(countries);
|
||||
ures_close(multiZone);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue