NS_RELEASE(atom);
NS_IMETHODIMP nsPluginInstanceOwner::GetTagType(nsPluginTagType *result){  NS_ENSURE_ARG_POINTER(result);  nsresult rv = NS_ERROR_FAILURE;  *result = nsPluginTagType_Unknown;  if (nsnull != mOwner)  {    nsIContent  *cont;    mOwner->GetContent(&cont);    if (nsnull != cont)    {      nsIAtom     *atom;      cont->GetTag(atom);      if (nsnull != atom)      {        if (atom == nsHTMLAtoms::applet)          *result = nsPluginTagType_Applet;        else if (atom == nsHTMLAtoms::embed)          *result = nsPluginTagType_Embed;        else if (atom == nsHTMLAtoms::object)          *result = nsPluginTagType_Object;        rv = NS_OK;        NS_RELEASE(atom);      }      NS_RELEASE(cont);    }  }  return rv;}