From 0abf0c5866da0c61940915e1efa843505e03d932 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Wed, 10 Dec 2025 12:28:54 -0500 Subject: [PATCH] CFTreeRemoveAllChildren should not be guarded for macOS alone Note: Perhaps the corefoundation engineers at Apple Inc should check that this isn't a bug on their other non-macOS platforms as well. --- Sources/CoreFoundation/CFTree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/CoreFoundation/CFTree.c b/Sources/CoreFoundation/CFTree.c index a132b8b2c9..28e441dea7 100644 --- a/Sources/CoreFoundation/CFTree.c +++ b/Sources/CoreFoundation/CFTree.c @@ -88,9 +88,7 @@ static CFStringRef __CFTreeCopyDescription(CFTypeRef cf) { static void __CFTreeDeallocate(CFTypeRef cf) { CFTreeRef tree = (CFTreeRef)cf; const struct __CFTreeCallBacks *cb; -#if TARGET_OS_OSX CFTreeRemoveAllChildren(tree); -#endif cb = __CFTreeGetCallBacks(tree); if (NULL != cb->release) { INVOKE_CALLBACK1(cb->release, tree->_info);