From 4b4bbdc1c9f3f77630669a099e64dd0b5b69cef7 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 29 Sep 2001 00:00:11 +0000 Subject: [PATCH] fix for #102071. remove unneeded strdups. r=varada, sr=bienvenu --- mailnews/compose/src/nsMsgCompose.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index da3d0e760a2d..0826caf4c170 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -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); } }