Bug 673806, unlink animation controller, r=dholbert

This commit is contained in:
Olli Pettay 2011-07-25 20:50:29 +03:00
parent 6311b456b0
commit 0282058875

View File

@ -1956,6 +1956,12 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsDocument)
// else, and not unlink an awful lot here.
tmp->mIdentifierMap.Clear();
#ifdef MOZ_SMIL
if (tmp->mAnimationController) {
tmp->mAnimationController->Unlink();
}
#endif // MOZ_SMIL
tmp->mInUnlinkOrDeletion = PR_FALSE;
NS_IMPL_CYCLE_COLLECTION_UNLINK_END