fix crash on shutdown after reading news message in memory cache r=sspitzer, sr=mscott 65724

This commit is contained in:
bienvenu%netscape.com 2001-01-19 04:10:11 +00:00
Родитель 801e29ef66
Коммит 727731f86d
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -862,6 +862,9 @@ NS_IMETHODIMP nsNNTPProtocol::AsyncRead(nsIStreamListener *listener, nsISupports
MarkCurrentMsgRead();
if (NS_SUCCEEDED(rv)) // ONLY if we succeeded in actually starting the read should we return
{
// we're not calling nsMsgProtocol::AsyncRead(), which calls nsNNTPProtocol::LoadUrl, so we need to take care of some stuff it does.
m_ContentType = "";
m_channelListener = nsnull;
return rv;
}
}
@ -5418,7 +5421,6 @@ nsresult nsNNTPProtocol::CleanupAfterRunningUrl()
mailnewsurl->SetMemCacheEntry(nsnull);
}
PR_FREEIF(m_path);
PR_FREEIF(m_responseText);
PR_FREEIF(m_dataBuf);