if (ptr->mSendListener) delete ptr->mSendListener;
if (!ptr) return NS_ERROR_NULL_POINTER;  ptr->DeliverAsNewsExit(aUrl, aExitCode, ptr->mSendMailAlso);  if (ptr->mNewsPostListener) delete ptr->mNewsPostListener;
NewsDeliveryCallback(nsIURI *aUrl, nsresult aExitCode, void *tagData){  if (tagData)  {    nsMsgComposeAndSend *ptr = (nsMsgComposeAndSend *) tagData;    ptr->DeliverAsNewsExit(aUrl, aExitCode);    if (ptr->mSendListener)      delete ptr->mSendListener;    NS_RELEASE(ptr);  }  return aExitCode;}