Fix for Mac bustage

This commit is contained in:
rhp%netscape.com 1999-08-18 06:48:35 +00:00
parent aeb4f2236f
commit 7606cf018d

View File

@ -499,10 +499,9 @@ nsMsgAttachmentHandler::SnarfAttachment(nsMsgCompFields *compFields)
NS_RELEASE(mURL);
mURL = nsnull;
const char *tmpName = mAppleFileSpec->GetNativePathCString(); // don't free this!
char *newURLSpec = nsMsgPlatformFileToURL(tmpName);
char *newURLSpec = nsMsgPlatformFileToURL(*mAppleFileSpec);
if ( (!tmpName) || (!newURLSpec) )
if (!newURLSpec)
{
PR_FREEIF(src_filename);
PR_FREEIF(separator);