delete text;
nsCRT::free(text);
nsAttributeContent::ValidateTextFragment(){  if (nsnull != mContent) {    nsAutoString result;    mContent->GetAttribute(mNameSpaceID, mAttrName, result);    PRUnichar * text = result.ToNewUnicode();    mText.SetTo(text, result.Length());    delete text;  }  else {    mText.SetTo("", 0);  }}