111899 r=ducarroz sr=bienvenu. fix a prunichar* memory leak

This commit is contained in:
naving%netscape.com 2001-11-26 21:53:17 +00:00
parent 3df574c3e0
commit 797838a11d

View File

@ -2308,10 +2308,10 @@ nsresult nsMsgComposeSendListener::OnStopSending(const char *aMsgID, nsresult aS
compose->ProcessReplyFlags();
// Close the window ONLY if we are not going to do a save operation
PRUnichar *fieldsFCC = nsnull;
if (NS_SUCCEEDED(compFields->GetFcc(&fieldsFCC)))
nsXPIDLString fieldsFCC;
if (NS_SUCCEEDED(compFields->GetFcc(getter_Copies(fieldsFCC))))
{
if (fieldsFCC && *fieldsFCC)
if (!fieldsFCC.IsEmpty())
{
if (Compare(nsDependentString(fieldsFCC),
NS_LITERAL_STRING("nocopy://"),