Skip to content

Commit 8ebab26

Browse files
authored
Call uncv close on non-empty slots (#5379)
NULL != converter was always true.
1 parent 14777ef commit 8ebab26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CoreFoundation/CFICUConverters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void __CFICUThreadDataDestructor(void *context) {
3333
UConverter **limit = converter + data->_numSlots;
3434

3535
while (converter < limit) {
36-
if (NULL != converter) ucnv_close(*converter);
36+
if (NULL != *converter) ucnv_close(*converter);
3737
++converter;
3838
}
3939
CFAllocatorDeallocate(NULL, data->_converters);

0 commit comments

Comments
 (0)