mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
111899 r=ducarroz sr=bienvenu. fix a prunichar* memory leak
This commit is contained in:
parent
3df574c3e0
commit
797838a11d
@ -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://"),
|
||||
|
Loading…
Reference in New Issue
Block a user