зеркало из https://github.com/mozilla/pjs.git
95501 r/sr=bienvenu sr=mscott. Fix nsDocShell leaks for pop3 accts on start-up and shutdown.
This commit is contained in:
Родитель
962426529a
Коммит
4b3380b60b
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче