From af853b8bce3c264aee8e4f7a10a9def751848e25 Mon Sep 17 00:00:00 2001 From: Dark-detsixE Date: Sat, 17 Jan 2026 19:46:32 +0800 Subject: [PATCH] Fix AnimatorState.removeListeners or memory leaks. --- .../Animation/Animatable/AnimatableAttribute.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/OpenSwiftUICore/Animation/Animatable/AnimatableAttribute.swift b/Sources/OpenSwiftUICore/Animation/Animatable/AnimatableAttribute.swift index c18a89817..b798ff77a 100644 --- a/Sources/OpenSwiftUICore/Animation/Animatable/AnimatableAttribute.swift +++ b/Sources/OpenSwiftUICore/Animation/Animatable/AnimatableAttribute.swift @@ -474,7 +474,7 @@ final package class AnimatorState where V: VectorArithmetic { package func removeListeners() { listeners.forEach { $0.animationWasRemoved() } listeners = [] - listeners.forEach { $0.animationWasRemoved() } + logicalListeners.forEach { $0.animationWasRemoved() } logicalListeners = [] }