diff --git a/deps/uv/src/UDT4/src/api.cpp b/deps/uv/src/UDT4/src/api.cpp index c5626f1eb93..18dcad2c551 100755 --- a/deps/uv/src/UDT4/src/api.cpp +++ b/deps/uv/src/UDT4/src/api.cpp @@ -1509,10 +1509,10 @@ void CUDTUnited::removeSocket(const UDTSOCKET u) m->second.m_iRefCount --; if (0 == m->second.m_iRefCount) { - m->second.m_pChannel->close(); delete m->second.m_pSndQueue; delete m->second.m_pRcvQueue; delete m->second.m_pTimer; + m->second.m_pChannel->close(); delete m->second.m_pChannel; m_mMultiplexer.erase(m); }