mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-770 Couldn't properly fix this memory leak. See j1492 for details.
X-SVN-Rev: 6845
This commit is contained in:
parent
7466176e30
commit
14014361e1
1 changed files with 3 additions and 1 deletions
|
@ -165,6 +165,7 @@ static void initCache(UErrorCode *status) {
|
|||
}
|
||||
|
||||
/* Works just like ucnv_flushCache() */
|
||||
/* TODO: figure out why fCountExisting may not go to zero. Do not make this function public yet. */
|
||||
static int32_t ures_flushCache()
|
||||
{
|
||||
UResourceDataEntry *resB = NULL;
|
||||
|
@ -189,7 +190,8 @@ static int32_t ures_flushCache()
|
|||
* Don't worry about the parents of this node.
|
||||
* Those will eventually get deleted too, if not already.
|
||||
*/
|
||||
if (resB->fCountExisting == 0)
|
||||
/* TODO: figure out why fCountExisting may not go to zero. Do not make this function public yet. */
|
||||
/* if (resB->fCountExisting == 0)*/
|
||||
{
|
||||
rbDeletedNum++;
|
||||
uhash_removeElement(cache, e);
|
||||
|
|
Loading…
Add table
Reference in a new issue