Bug 752902 - Call Unlink before clearing time value specs; r=dholbert

This commit is contained in:
Brian Birtles 2012-05-23 08:21:23 +09:00
parent a75759c60f
commit 917037a94e

View File

@ -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);
}