diff --git a/content/smil/nsSMILTimedElement.cpp b/content/smil/nsSMILTimedElement.cpp index eaeae976b25..54a13f66394 100644 --- a/content/smil/nsSMILTimedElement.cpp +++ b/content/smil/nsSMILTimedElement.cpp @@ -1312,7 +1312,13 @@ nsSMILTimedElement::ClearSpecs(TimeValueSpecList& aSpecs, InstanceTimeList& aInstances, RemovalTestFunction aRemove) { + AutoIntervalUpdateBatcher(*this); + + for (PRUint32 i = 0; i < aSpecs.Length(); ++i) { + aSpecs[i]->Unlink(); + } aSpecs.Clear(); + RemoveByFunction removeByFunction(aRemove); RemoveInstanceTimes(aInstances, removeByFunction); }