Changeset 615
- Timestamp:
- 08/10/06 19:11:26 (2 years ago)
- Files:
-
- nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp (modified) (2 diffs)
- nepenthes/trunk/nepenthes-core/src/SocketManager.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp
r594 r615 116 116 { 117 117 logPF(); 118 118 119 if ( m_SocketManager != NULL ) 119 delete m_SocketManager;120 m_SocketManager->Exit(); 120 121 121 122 if (m_DownloadManager != NULL ) … … 148 149 if (m_LogManager != NULL) 149 150 delete m_LogManager; 151 152 if ( m_SocketManager != NULL ) 153 delete m_SocketManager; 150 154 151 155 g_Nepenthes = NULL; nepenthes/trunk/nepenthes-core/src/SocketManager.cpp
r605 r615 94 94 SocketManager::~SocketManager() 95 95 { 96 // FIXME CLOSE ALL SOCKETS 97 while(m_Sockets.size() > 0) 98 { 99 if ( !(m_Sockets.front()->getType() & ST_NODEL) ) 100 delete m_Sockets.front(); 101 m_Sockets.pop_front(); 102 } 96 Exit(); 103 97 } 104 98 … … 157 151 bool SocketManager::Exit() 158 152 { 153 while(m_Sockets.size() > 0) 154 { 155 if ( !(m_Sockets.front()->getType() & ST_NODEL) ) 156 delete m_Sockets.front(); 157 m_Sockets.pop_front(); 158 } 159 159 160 return true; 160 161 }
