From 986bc31cb50fb057b6e14a4011ac8def1d522f2a Mon Sep 17 00:00:00 2001 From: David Bienvenu Date: Wed, 11 Jan 2012 07:44:09 -0800 Subject: [PATCH] bulletproof fix for crash in mime_parse_stream_complete, r=standard8, bug 715810 --- mailnews/mime/src/mimedrft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/mime/src/mimedrft.cpp b/mailnews/mime/src/mimedrft.cpp index 25a27bc67e..c7f6b8a858 100644 --- a/mailnews/mime/src/mimedrft.cpp +++ b/mailnews/mime/src/mimedrft.cpp @@ -1607,7 +1607,7 @@ mime_parse_stream_complete (nsMIMESession *stream) // if (bodyAsAttachment) mdd->messageBody->m_tmpFile = nsnull; - else if (mdd->messageBody->m_tmpFile) + else if (mdd->messageBody && mdd->messageBody->m_tmpFile) mdd->messageBody->m_tmpFile->Remove(false); delete mdd->messageBody;