From: <sg...@us...> - 2003-09-28 12:40:36
|
Update of /cvsroot/libfunutil/libfunutil/lib/s11n In directory sc8-pr-cvs1:/tmp/cvs-serv29778/lib/s11n Modified Files: DLLLoader.cpp Log Message: Fix to avoid closing soh_main multiple times. Index: DLLLoader.cpp =================================================================== RCS file: /cvsroot/libfunutil/libfunutil/lib/s11n/DLLLoader.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- DLLLoader.cpp 28 Sep 2003 03:21:57 -0000 1.3 +++ DLLLoader.cpp 28 Sep 2003 12:40:21 -0000 1.4 @@ -82,14 +82,13 @@ DLLLoader::soh_map_type::iterator et = map.end(); for( ; it != et; ++it ) { - if( NULL != (*it).second ) + if( NULL != (*it).second && ( soh_main != (*it).second ) ) { COUT << "Closing DLL: " << std::hex <<(*it).second<<""<<std::endl; dlclose( (*it).second ); } map.erase( it ); } - dlclose( soh_main ); } }; |