Changeset 473
- Timestamp:
- 04/07/06 03:23:41 (2 years ago)
- Files:
-
- library (added)
- library/trunk (added)
- library/trunk/AUTHORS (copied) (copied from nepenthes/trunk/AUTHORS)
- library/trunk/CHANGES (copied) (copied from nepenthes/trunk/CHANGES)
- library/trunk/COPYING (copied) (copied from nepenthes/trunk/COPYING)
- library/trunk/INSTALL (copied) (copied from nepenthes/trunk/INSTALL)
- library/trunk/LICENSE (copied) (copied from nepenthes/trunk/LICENSE)
- library/trunk/Makefile.am (copied) (copied from nepenthes/trunk/Makefile.am)
- library/trunk/README (copied) (copied from nepenthes/trunk/README)
- library/trunk/configure.ac (copied) (copied from nepenthes/trunk/configure.ac)
- library/trunk/library-core (copied) (copied from nepenthes/trunk/nepenthes-core)
- library/trunk/library-core/src/ModuleManager.cpp (modified) (1 diff)
- library/trunk/library-core/src/Nepenthes.cpp (modified) (1 diff)
- library/trunk/modules (added)
- library/trunk/modules/dnsresolve-adns (copied) (copied from nepenthes/trunk/modules/dnsresolve-adns)
- library/trunk/modules/geolocation-geoip (copied) (copied from nepenthes/trunk/modules/geolocation-geoip)
- library/trunk/modules/geolocation-ip2location (copied) (copied from nepenthes/trunk/modules/geolocation-ip2location)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
library/trunk/library-core/src/ModuleManager.cpp
r460 r473 165 165 bool ModuleManager::Exit() 166 166 { 167 /* list<Module *>::iterator it; 168 for( it = m_Modules.begin(); it != m_Modules.end(); it++ ) 169 unregisterModule(&(*it)->getModuleName()); 170 */ 171 172 while(m_Modules.size() > 0) 167 while ( m_Modules.size() > 0 ) 173 168 { 174 169 void *handle = m_Modules.front()->getDlHandle(); 175 170 m_Modules.front()->Exit(); 176 if(m_Modules.front()->getConfig() != NULL) 171 172 if ( m_Modules.front()->getConfig() != NULL ) 173 { 177 174 delete m_Modules.front()->getConfig(); 178 179 delete m_Modules.front(); 175 } 176 177 delete m_Modules.front(); 180 178 #ifdef WIN32 181 179 FreeLibrary((HINSTANCE)handle); library/trunk/library-core/src/Nepenthes.cpp
r454 r473 750 750 } 751 751 752 if( run == true )753 {754 doLoop();755 }else756 752 if (filecheck) 757 753 { 758 754 show_version(); 759 755 fileCheckMain(filecheckarg,argc,optind,argv); 756 } 757 if( run == true ) 758 { 759 doLoop(); 760 760 } 761 761
