Attempt to fix a shutdown crash; don't refresh when we're removed from the document.

This commit is contained in:
bryner%brianryner.com 2004-11-07 08:28:40 +00:00
parent da3ad9140c
commit 3c1fa565f0

View File

@ -234,7 +234,9 @@ nsXFormsInputElement::ParentChanged(nsIDOMElement *aNewParent)
{
// We need to re-evaluate our instance data binding when our parent
// changes, since xmlns declarations in effect could have changed.
Refresh();
if (aNewParent)
Refresh();
return NS_OK;
}