зеркало из https://github.com/mozilla/pjs.git
fix for #102071. remove unneeded strdups. r=varada, sr=bienvenu
This commit is contained in:
Родитель
71975fe645
Коммит
0292c4f58e
|
@ -3475,14 +3475,12 @@ NS_IMETHODIMP nsMsgCompose::CheckAndPopulateRecipients(PRBool populateMailList,
|
|||
|
||||
if (populateMailList)
|
||||
{
|
||||
PRUnichar * str = recipientsStr.ToNewUnicode();
|
||||
switch (i)
|
||||
{
|
||||
case 0 : m_compFields->SetTo(str); break;
|
||||
case 1 : m_compFields->SetCc(str); break;
|
||||
case 2 : m_compFields->SetBcc(str); break;
|
||||
case 0 : m_compFields->SetTo(recipientsStr.get()); break;
|
||||
case 1 : m_compFields->SetCc(recipientsStr.get()); break;
|
||||
case 2 : m_compFields->SetBcc(recipientsStr.get()); break;
|
||||
}
|
||||
Recycle(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче