Fix for bug 199500 - Crash in nsHttpConnectionMgr::OnSocketEvent if PSM is not installed; p=darin r/sr=alecf a=dbaron

This commit is contained in:
guru%startrek.com 2003-03-28 15:02:42 +00:00
Родитель 236d058e2a
Коммит 0f9f181ca8
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -554,6 +554,11 @@ nsHttpConnectionMgr::DispatchTransaction(nsConnectionEntry *ent,
LOG((" conn->Activate failed [rv=%x]\n", rv));
ent->mActiveConns.RemoveElement(conn);
mNumActiveConns--;
// sever back references to connection, and do so without triggering
// a call to ReclaimConnection ;-)
trans->SetConnection(nsnull);
NS_RELEASE(handle->mConn);
// destroy the connection
NS_RELEASE(conn);
}