Index: Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h |
=================================================================== |
--- Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h (revision 118877) |
+++ Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h (working copy) |
@@ -32,6 +32,18 @@ |
typedef SVGPropertyTearOff<PropertyType> PropertyTearOff; |
typedef PropertyType ContentType; |
+ virtual ~SVGAnimatedPropertyTearOff() |
+ { |
+ if (m_baseVal) { |
+ ASSERT(m_baseVal->animatedProperty() == this); |
+ m_baseVal->setAnimatedProperty(0); |
+ } |
+ if (m_animVal) { |
+ ASSERT(m_animVal->animatedProperty() == this); |
+ m_animVal->setAnimatedProperty(0); |
+ } |
+ } |
+ |
PropertyTearOff* baseVal() |
{ |
if (!m_baseVal) |