95501 r/sr=bienvenu sr=mscott. Fix nsDocShell leaks for pop3 accts on start-up and shutdown.

This commit is contained in:
naving%netscape.com 2001-09-06 21:32:11 +00:00
Родитель 962426529a
Коммит 4b3380b60b
2 изменённых файлов: 5 добавлений и 3 удалений

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

@ -198,11 +198,11 @@ nsresult nsMsgProtocol::SetupTransportState()
nsresult nsMsgProtocol::CloseSocket()
{
nsresult rv = NS_OK;
// release all of our socket state
m_socketIsOpen = PR_FALSE;
m_outputStream = null_nsCOMPtr();
if (m_transport)
m_transport->SetNotificationCallbacks(nsnull, PR_FALSE);
// we need to call Cancel so that we remove the socket transport from the mActiveTransportList. see bug #30648
if (m_request) {
rv = m_request->Cancel(NS_BINDING_ABORTED);

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

@ -435,7 +435,9 @@ nsProxyEventObject::~nsProxyEventObject()
nsCOMPtr<nsISupports> rootQueue = do_QueryInterface(mProxyObject->mDestQueue);
nsProxyEventKey key(rootObject, rootQueue, mProxyObject->mProxyType);
void* value = realToProxyMap->Remove(&key);
#ifdef DEBUG_dougt
NS_ASSERTION(value, "failed to remove from realToProxyMap");
#endif
}
}
}