Changeset 962 for trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPThermalScattering.cc
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPThermalScattering.cc
r819 r962 39 39 40 40 // 070625 Fix memory leaking at destructor by T. Koi 41 // 081201 Fix memory leaking at destructor by T. Koi 41 42 42 43 #include "G4NeutronHPThermalScattering.hh" … … 103 104 { 104 105 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++ ) 108 107 { 109 108 std::map < G4double , std::vector < E_isoAng* >* >::iterator itt; … … 119 118 delete it->second; 120 119 } 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++ ) 126 122 { 127 123 std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >::iterator itt; … … 137 133 delete it->second; 138 134 } 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++ ) 144 137 { 145 138 std::map < G4double , std::vector < E_P_E_isoAng* >* >::iterator itt; … … 160 153 delete it->second; 161 154 } 162 } 163 155 156 delete theHPElastic; 164 157 delete theXSection; 165 158 }
Note: See TracChangeset
for help on using the changeset viewer.