Changeset 473

Show
Ignore:
Timestamp:
04/07/06 03:23:41 (2 years ago)
Author:
common
Message:

library
- svn copied all required files from nepenthes trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • library/trunk/library-core/src/ModuleManager.cpp

    r460 r473  
    165165bool ModuleManager::Exit() 
    166166{ 
    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 ) 
    173168        { 
    174169                void *handle = m_Modules.front()->getDlHandle(); 
    175170                m_Modules.front()->Exit(); 
    176                 if(m_Modules.front()->getConfig() != NULL) 
     171 
     172                if ( m_Modules.front()->getConfig() != NULL ) 
     173                { 
    177174                delete m_Modules.front()->getConfig(); 
    178                  
    179         delete m_Modules.front(); 
     175                } 
     176 
     177                delete m_Modules.front(); 
    180178#ifdef WIN32 
    181179                FreeLibrary((HINSTANCE)handle); 
  • library/trunk/library-core/src/Nepenthes.cpp

    r454 r473  
    750750        } 
    751751 
    752         if( run == true ) 
    753         { 
    754         doLoop(); 
    755         }else 
    756752        if (filecheck) 
    757753        { 
    758754                show_version(); 
    759755                fileCheckMain(filecheckarg,argc,optind,argv); 
     756        } 
     757        if( run == true ) 
     758        { 
     759        doLoop(); 
    760760        } 
    761761