Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPThermalScattering.cc

    r819 r962  
    3939
    4040// 070625 Fix memory leaking at destructor by T. Koi
     41// 081201 Fix memory leaking at destructor by T. Koi
    4142
    4243#include "G4NeutronHPThermalScattering.hh"
     
    103104{
    104105
    105    { // separate name scope of it
    106    std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >::iterator it;
    107    for ( it = incoherentFSs.begin() ; it != incoherentFSs.end() ; it++ )
     106   for ( std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >::iterator it = incoherentFSs.begin() ; it != incoherentFSs.end() ; it++ )
    108107   {
    109108      std::map < G4double , std::vector < E_isoAng* >* >::iterator itt;
     
    119118      delete it->second;
    120119   }
    121    }
    122 
    123    {
    124    std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >::iterator it;
    125    for ( it = coherentFSs.begin() ; it != coherentFSs.end() ; it++ )
     120
     121   for ( std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >::iterator it = coherentFSs.begin() ; it != coherentFSs.end() ; it++ )
    126122   {
    127123      std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >::iterator itt;
     
    137133      delete it->second;
    138134   }
    139    }
    140 
    141    {
    142    std::map < G4int ,  std::map < G4double , std::vector < E_P_E_isoAng* >* >* >::iterator it;
    143    for ( it = inelasticFSs.begin() ; it != inelasticFSs.end() ; it++ )
     135
     136   for ( std::map < G4int ,  std::map < G4double , std::vector < E_P_E_isoAng* >* >* >::iterator it = inelasticFSs.begin() ; it != inelasticFSs.end() ; it++ )
    144137   {
    145138      std::map < G4double , std::vector < E_P_E_isoAng* >* >::iterator itt;
     
    160153      delete it->second;
    161154   }
    162    }
    163 
     155
     156   delete theHPElastic;
    164157   delete theXSection;
    165158}
Note: See TracChangeset for help on using the changeset viewer.