Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 393fc8204f770944fb1d811b90486c12a0cb42f2
      
https://github.com/WebKit/WebKit/commit/393fc8204f770944fb1d811b90486c12a0cb42f2
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-06 (Mon, 06 Apr 2026)

  Changed paths:
    M Source/WebCore/svg/properties/SVGAnimatedPropertyList.h
    M Source/WebCore/svg/properties/SVGAnimatedValueProperty.h

  Log Message:
  -----------
  Release animVal when animation ends in SVGAnimatedPropertyList and 
SVGAnimatedValueProperty
https://bugs.webkit.org/show_bug.cgi?id=311559

Reviewed by Darin Adler.

SVGAnimatedPrimitiveProperty::stopAnimation() already nulls m_animVal when
the last animator stops, freeing memory. SVGAnimatedPropertyList and
SVGAnimatedValueProperty were missing this — they unconditionally reset
animVal to baseVal, keeping the allocation alive indefinitely after
animation ended. For large lists (path segments, point lists), this is
wasted memory. Both classes already null m_animVal in
instanceStopAnimationImpl, so this makes stopAnimation consistent.

* Source/WebCore/svg/properties/SVGAnimatedPropertyList.h:
* Source/WebCore/svg/properties/SVGAnimatedValueProperty.h:

Canonical link: https://commits.webkit.org/310680@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to