Commits

Anonymous committed 81ff7d7

fixing release of 'empty' monitorSvc

  • Participants
  • Parent commits f98469a

Comments (0)

Files changed (1)

src/AthAlgorithm.cxx

 ///////////////
 AthAlgorithm::~AthAlgorithm()
 { 
-  msg() << MSG::VERBOSE << "Calling destructor" << endreq;
+  //msg() << MSG::VERBOSE << "Calling destructor..." << endreq;
   delete m_subAlgms;
   delete m_propertyMgr;
 
-  if ( m_pMonitorSvc ) {
+  if ( !m_pMonitorSvc.empty() && m_pMonitorSvc ) {
     m_pMonitorSvc->undeclareAll( this );
   }
+  //msg() << MSG::VERBOSE << "Calling destructor... [DONE]" << endreq;
 }
 
 // IAlgorithm implementation