]> granicus.if.org Git - icu/commitdiff
ICU-10051 ures_cleanup tweaked for failing test.
authorAndy Heninger <andy.heninger@gmail.com>
Sat, 1 Jun 2013 05:10:48 +0000 (05:10 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Sat, 1 Jun 2013 05:10:48 +0000 (05:10 +0000)
X-SVN-Rev: 33789

icu4c/source/common/uresbund.cpp

index 5fe8820351d09feefed918bc4dcff5673813b78f..e1915f6fc16547a6ffe83a434fcbeac6e09ebbca 100644 (file)
@@ -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 */