Bug 723105 - crash CrashInJS | nsMsgIdentity::SetFullName | nsOutlookCompose::CreateIdentity. r+a=Standard8
authorDavid Bienvenu <dbienvenu@mozilla.com>
Wed, 08 Feb 2012 11:11:10 -0500
changeset 10167 227876aaf64da489d9eac67906d384a277536a2b
parent 10164 458dad0ffd8f159c5f552b9b36a0b0f8d1449b57
child 10168 9f3e1bfd37aa65ed30fba232175b3e9f5f1c5a06
push idunknown
push userunknown
push dateunknown
bugs723105
Bug 723105 - crash CrashInJS | nsMsgIdentity::SetFullName | nsOutlookCompose::CreateIdentity. r+a=Standard8
mailnews/import/outlook/src/nsOutlookCompose.cpp
--- a/mailnews/import/outlook/src/nsOutlookCompose.cpp
+++ b/mailnews/import/outlook/src/nsOutlookCompose.cpp
@@ -215,33 +215,30 @@ nsresult OutlookSendListener::CreateSend
 #define hackCRLFW NS_L(hackCRLFA)
 #define hackAmpersandA "amp"
 #define hackAmpersandW NS_L(hackAmpersandA)
 
 nsOutlookCompose::nsOutlookCompose()
 {
   m_pListener = nsnull;
   m_pMsgFields = nsnull;
-  m_pIdentity = nsnull;
 
   m_optimizationBufferSize = 16*1024;
   m_optimizationBuffer = new char[m_optimizationBufferSize];
 }
 
 nsOutlookCompose::~nsOutlookCompose()
 {
   NS_IF_RELEASE(m_pListener);
   NS_IF_RELEASE(m_pMsgFields);
   if (m_pIdentity) {
     nsresult rv = m_pIdentity->ClearAllValues();
     NS_ASSERTION(NS_SUCCEEDED(rv),"failed to clear values");
     if (NS_FAILED(rv))
       return;
-
-    NS_RELEASE(m_pIdentity);
   }
   delete[] m_optimizationBuffer;
 }
 
 nsIMsgIdentity * nsOutlookCompose::m_pIdentity = nsnull;
 
 nsresult nsOutlookCompose::CreateIdentity( void)
 {