CTransferSocket::~CTransferSocket() { if (m_pBuffer) #if defined(_XBOX) free(m_pBuffer); #else delete [] m_pBuffer; #endif if (m_hFile != INVALID_HANDLE_VALUE) { CloseHandle(m_hFile); m_hFile = INVALID_HANDLE_VALUE; } #ifndef NOLAYERS RemoveAllLayers(); if (m_pGssLayer) delete m_pGssLayer; #endif while (m_pDirListing) { t_dirlisting *pPrev = m_pDirListing; m_pDirListing = m_pDirListing->pNext; delete pPrev; } }
CTransferSocket::~CTransferSocket() { LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("~CTransferSocket()")); nb_free(m_pBuffer); #ifndef MPEXT_NO_ZLIB nb_free(m_pBuffer2); #endif PostMessage(m_pOwner->m_pOwner->m_hOwnerWnd, m_pOwner->m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_TRANSFERSTATUS, 0), 0); Close(); RemoveAllLayers(); delete m_pProxyLayer; #ifndef MPEXT_NO_SSL delete m_pSslLayer; #endif #ifndef MPEXT_NO_GSS delete m_pGssLayer; #endif m_pOwner->RemoveActiveTransfer(); delete m_pListResult; #ifndef MPEXT_NO_ZLIB if (m_useZlib) { if (m_nMode & CSMODE_UPLOAD) deflateEnd(&m_zlibStream); else inflateEnd(&m_zlibStream); } #endif }
CTransferSocket::~CTransferSocket() { nb_free(m_pBuffer); #ifndef MPEXT_NO_ZLIB nb_free(m_pBuffer2); #endif GetIntern()->FZPostMessage(FZ_MSG_MAKEMSG(FZ_MSG_TRANSFERSTATUS, 0), 0); Close(); RemoveAllLayers(); delete m_pProxyLayer; delete m_pSslLayer; #ifndef MPEXT_NO_GSS delete m_pGssLayer; #endif m_pOwner->RemoveActiveTransfer(); delete m_pListResult; #ifndef MPEXT_NO_ZLIB if (m_useZlib) { if (m_nMode & CSMODE_UPLOAD) deflateEnd(&m_zlibStream); else inflateEnd(&m_zlibStream); } #endif }
void CEMSocket::OnClose(int nErrorCode) { m_eConnectionState = ES_DISCONNECTED; CEncryptedStreamSocket::OnClose(nErrorCode); RemoveAllLayers(); ClearQueues(); }
CEMSocket::~CEMSocket() { EMTrace("CEMSocket::~CEMSocket() on %d",(SOCKET)this); ClearQueues(); RemoveAllLayers(); AsyncSelect(0); }
void CEMSocket::OnClose(int nErrorCode){ // need to be locked here to know that the other methods // won't be in the middle of things sendLocker.Lock(); byConnected = ES_DISCONNECTED; sendLocker.Unlock(); // now that we know no other method will keep adding to the queue // we can remove ourself from the queue theApp.uploadBandwidthThrottler->RemoveFromAllQueues(this); CEncryptedStreamSocket::OnClose(nErrorCode); // deadlake changed socket to PROXYSUPPORT ( AsyncSocketEx ) RemoveAllLayers(); // deadlake PROXYSUPPORT ClearQueues(); }
CEMSocket::~CEMSocket(){ EMTrace("CEMSocket::~CEMSocket() on %d",(SOCKET)this); // need to be locked here to know that the other methods // won't be in the middle of things sendLocker.Lock(); byConnected = ES_DISCONNECTED; sendLocker.Unlock(); // now that we know no other method will keep adding to the queue // we can remove ourself from the queue theApp.uploadBandwidthThrottler->RemoveFromAllQueues(this); ClearQueues(); RemoveAllLayers(); // deadlake PROXYSUPPORT AsyncSelect(0); }
CIrcSocket::~CIrcSocket() { RemoveAllLayers(); }