зеркало из https://github.com/mozilla/pjs.git
fix deref of uninitialized ptr
This commit is contained in:
Родитель
c4cd0afca9
Коммит
c1fdf260f7
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче