зеркало из https://github.com/mozilla/gecko-dev.git
fix for #102071. remove unneeded strdups. r=varada, sr=bienvenu
This commit is contained in:
Родитель
5c82c6384e
Коммит
4b4bbdc1c9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче