From 856142eb25a9ebd675ae9e819e94754908c2c01f Mon Sep 17 00:00:00 2001 From: Jakub Grzywacz Date: Tue, 10 Dec 2024 11:15:27 +0100 Subject: [PATCH] fix: currentColor overflow (#2570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary This is a blind fix for issue #2566 that resets the caller on `prepareForRecycle`. While it should help address the overflow happening in some cases, I cannot guarantee that it will fully resolve the issue due to the lack of a reproducible scenario. ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | MacOS | ✅ | --- apple/RNSVGRenderable.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/RNSVGRenderable.mm b/apple/RNSVGRenderable.mm index 5f7bdd19..a728457a 100644 --- a/apple/RNSVGRenderable.mm +++ b/apple/RNSVGRenderable.mm @@ -241,6 +241,7 @@ static RNSVGRenderable *_contextElement; _vectorEffect = kRNSVGVectorEffectDefault; _propList = nil; _filter = nil; + _caller = nil; } #endif // RCT_NEW_ARCH_ENABLED