NS_ENSURE_TRUE(it, NS_ERROR_OUT_OF_MEMORY);  nsCOMPtr<nsIContent> kungFuDeathGrip(it);
if (!it) return nsnull;
nsTextNode::CloneContent(PRBool aCloneText, nsITextContent** aReturn){  nsTextNode* it = new nsTextNode();  NS_ENSURE_TRUE(it, NS_ERROR_OUT_OF_MEMORY);  nsCOMPtr<nsIContent> kungFuDeathGrip(it);  if (aCloneText) {    it->mText = mText;  }  *aReturn = it;  NS_ADDREF(*aReturn);  return NS_OK;}