Don't tear down part of the content tree while there are still frames

referencing it.  Bug 384728, r+sr=tor


git-svn-id: svn://10.0.0.236/trunk@228236 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2007-06-18 15:30:57 +00:00
parent a691eeaacf
commit f4fdf5a825

View File

@ -149,9 +149,9 @@ nsSVGUseFrame::AttributeChanged(PRInt32 aNameSpaceID,
void
nsSVGUseFrame::Destroy()
{
nsSVGUseElement *use = NS_STATIC_CAST(nsSVGUseElement*, mContent);
use->DestroyAnonymousContent();
nsRefPtr<nsSVGUseElement> use = NS_STATIC_CAST(nsSVGUseElement*, mContent);
nsSVGUseFrameBase::Destroy();
use->DestroyAnonymousContent();
}