if (ptr->mSendListener) delete ptr->mSendListener;
if (ptr->mMailSendListener) { delete ptr->mMailSendListener; }
MailDeliveryCallback(nsIURI *aUrl, nsresult aExitCode, void *tagData){  if (tagData)  {    nsMsgComposeAndSend *ptr = (nsMsgComposeAndSend *) tagData;    ptr->DeliverAsMailExit(aUrl, aExitCode);    if (ptr->mSendListener)      delete ptr->mSendListener;    NS_RELEASE(ptr);  }  return aExitCode;}