mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-13788 Fixing small memory leak in ucurr.cpp; always register the main currency_cleanup function, not the helper functions.
X-SVN-Rev: 41447
This commit is contained in:
parent
58b7fe2e32
commit
58b1463158
1 changed files with 1 additions and 1 deletions
|
@ -1500,7 +1500,7 @@ getCacheEntry(const char* locale, UErrorCode& ec) {
|
|||
cacheEntry->totalCurrencySymbolCount = total_currency_symbol_count;
|
||||
cacheEntry->refCount = 2; // one for cache, one for reference
|
||||
currentCacheEntryIndex = (currentCacheEntryIndex + 1) % CURRENCY_NAME_CACHE_NUM;
|
||||
ucln_common_registerCleanup(UCLN_COMMON_CURRENCY, currency_cache_cleanup);
|
||||
ucln_common_registerCleanup(UCLN_COMMON_CURRENCY, currency_cleanup);
|
||||
} else {
|
||||
deleteCurrencyNames(currencyNames, total_currency_name_count);
|
||||
deleteCurrencyNames(currencySymbols, total_currency_symbol_count);
|
||||
|
|
Loading…
Add table
Reference in a new issue