fix deref of uninitialized ptr

This commit is contained in:
bienvenu%netscape.com 2000-03-26 23:56:42 +00:00
Родитель c4cd0afca9
Коммит c1fdf260f7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -61,9 +61,6 @@ nsMimeBaseEmitter::nsMimeBaseEmitter()
// Initialize data output vars... // Initialize data output vars...
mFirstHeaders = PR_TRUE; mFirstHeaders = PR_TRUE;
if (mBufferMgr)
delete mBufferMgr;
mBufferMgr = NULL; mBufferMgr = NULL;
mTotalWritten = 0; mTotalWritten = 0;
mTotalRead = 0; mTotalRead = 0;
@ -120,7 +117,10 @@ nsMimeBaseEmitter::~nsMimeBaseEmitter(void)
// Delete the buffer manager... // Delete the buffer manager...
if (mBufferMgr) if (mBufferMgr)
{
delete mBufferMgr; delete mBufferMgr;
mBufferMgr = nsnull;
}
// Release the prefs service... // Release the prefs service...
if (mPrefs) if (mPrefs)