void Dispose(bool disposing) { lock (this) { // if (disposing) // managed member cleanup // unmanaged cleanup if (m_pMulti != IntPtr.Zero) { External.curl_multi_cleanup(m_pMulti); m_pMulti = IntPtr.Zero; } if (m_fdSets != IntPtr.Zero) { External.curl_shim_free_fd_sets(m_fdSets); m_fdSets = IntPtr.Zero; } } }