зеркало из https://github.com/mozilla/gecko-dev.git
fix memory leak of mork env
This commit is contained in:
Родитель
e4458901f4
Коммит
800fd801a4
|
@ -316,6 +316,11 @@ nsMsgDatabase::~nsMsgDatabase()
|
||||||
NS_RELEASE(m_HeaderParser);
|
NS_RELEASE(m_HeaderParser);
|
||||||
m_HeaderParser = nsnull;
|
m_HeaderParser = nsnull;
|
||||||
}
|
}
|
||||||
|
if (m_mdbEnv)
|
||||||
|
{
|
||||||
|
m_mdbEnv->CutStrongRef(m_mdbEnv); //??? is this right?
|
||||||
|
m_mdbEnv = nsnull;
|
||||||
|
}
|
||||||
if (m_ChangeListeners)
|
if (m_ChangeListeners)
|
||||||
{
|
{
|
||||||
// better not be any listeners, because we're going away.
|
// better not be any listeners, because we're going away.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче