From 4bb6b2f38090d3dc398037daa3f00ea952781c02 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 7 Aug 2007 09:23:46 +0000 Subject: [PATCH] ICU-5708 Fix a memory leak. X-SVN-Rev: 22301 --- icu4c/source/i18n/dtfmtsym.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/icu4c/source/i18n/dtfmtsym.cpp b/icu4c/source/i18n/dtfmtsym.cpp index bcaa1768445..32e2531f042 100644 --- a/icu4c/source/i18n/dtfmtsym.cpp +++ b/icu4c/source/i18n/dtfmtsym.cpp @@ -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; }