if ( cur->orig_url ) NS_RELEASE(cur->orig_url);
cur->orig_url=nsnull;
mime_free_attachments ( nsMsgAttachedFile *attachments, int count ){  int               i;  nsMsgAttachedFile *cur = attachments;  NS_ASSERTION ( attachments && count > 0, "freeing attachments but there aren't any");  if ( !attachments || count <= 0 )     return;  for ( i = 0; i < count; i++, cur++ )   {    if ( cur->orig_url )      NS_RELEASE(cur->orig_url);    PR_FREEIF ( cur->type );    PR_FREEIF ( cur->encoding );    PR_FREEIF ( cur->description );    PR_FREEIF ( cur->x_mac_type );    PR_FREEIF ( cur->x_mac_creator );    if ( cur->file_spec )     {      cur->file_spec->Delete(PR_FALSE);      delete ( cur->file_spec );    }  }  PR_FREEIF( attachments );}