зеркало из https://github.com/mozilla/pjs.git
Fix smtp send problem. I was over zealous in fixing a memory leak and we were appending an extra
comma to the list of recipients.
This commit is contained in:
Родитель
990bb83eef
Коммит
d6e2f3eae2
|
@ -1676,13 +1676,13 @@ nsMsgComposeAndSend::DeliverFileAsMail ()
|
|||
|
||||
PL_strcpy (buf, "");
|
||||
buf2 = buf + PL_strlen (buf);
|
||||
if (mCompFields->GetTo())
|
||||
if (mCompFields->GetTo() && *mCompFields->GetTo())
|
||||
PL_strcat (buf2, mCompFields->GetTo());
|
||||
if (mCompFields->GetCc()) {
|
||||
if (mCompFields->GetCc() && *mCompFields->GetCc()) {
|
||||
if (*buf2) PL_strcat (buf2, ",");
|
||||
PL_strcat (buf2, mCompFields->GetCc());
|
||||
}
|
||||
if (mCompFields->GetBcc()) {
|
||||
if (mCompFields->GetBcc() && *mCompFields->GetBcc()) {
|
||||
if (*buf2) PL_strcat (buf2, ",");
|
||||
PL_strcat (buf2, mCompFields->GetBcc());
|
||||
}
|
||||
|
|
|
@ -100,6 +100,7 @@ nsSmtpUrl::~nsSmtpUrl()
|
|||
PR_FREEIF(m_file);
|
||||
PR_FREEIF(m_ref);
|
||||
PR_FREEIF(m_search);
|
||||
PR_FREEIF(m_toPart);
|
||||
}
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsSmtpUrl);
|
||||
|
@ -281,7 +282,6 @@ nsresult nsSmtpUrl::CleanupSmtpState()
|
|||
PR_FREEIF(m_organizationPart);
|
||||
PR_FREEIF(m_replyToPart);
|
||||
PR_FREEIF(m_priorityPart);
|
||||
PR_FREEIF(m_toPart);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче