From: Andy Heninger Date: Sat, 1 Jun 2013 05:10:48 +0000 (+0000) Subject: ICU-10051 ures_cleanup tweaked for failing test. X-Git-Tag: milestone-59-0-1~2852 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbdf95be0e0d706975ce9b384ea983ff89fc3e68;p=icu ICU-10051 ures_cleanup tweaked for failing test. X-SVN-Rev: 33789 --- diff --git a/icu4c/source/common/uresbund.cpp b/icu4c/source/common/uresbund.cpp index 5fe8820351d..e1915f6fc16 100644 --- a/icu4c/source/common/uresbund.cpp +++ b/icu4c/source/common/uresbund.cpp @@ -258,13 +258,11 @@ static UBool U_CALLCONV ures_cleanup(void) { if (cache != NULL) { ures_flushCache(); - if (cache != NULL && uhash_count(cache) == 0) { - uhash_close(cache); - cache = NULL; - } + uhash_close(cache); + cache = NULL; } gCacheInitOnce.reset(); - return (cache == NULL); + return TRUE; } /** INTERNAL: Initializes the cache for resources */