From c1fdf260f7c3b66986c2ff65090d2b1550606784 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Sun, 26 Mar 2000 23:56:42 +0000 Subject: [PATCH] fix deref of uninitialized ptr --- mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp b/mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp index 45196d3a197..ca35639cf7f 100644 --- a/mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp +++ b/mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp @@ -61,9 +61,6 @@ nsMimeBaseEmitter::nsMimeBaseEmitter() // Initialize data output vars... mFirstHeaders = PR_TRUE; - if (mBufferMgr) - delete mBufferMgr; - mBufferMgr = NULL; mTotalWritten = 0; mTotalRead = 0; @@ -120,7 +117,10 @@ nsMimeBaseEmitter::~nsMimeBaseEmitter(void) // Delete the buffer manager... if (mBufferMgr) + { delete mBufferMgr; + mBufferMgr = nsnull; + } // Release the prefs service... if (mPrefs)