Problem 864

Summary: G4MuonDecayChannel has memory leaks
Product: Geant4 Reporter: yoshinori.sato
Component: particlesAssignee: kurasige
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Linux   

Description yoshinori.sato 2006-04-27 23:41:11 CEST
Dear those who are concerened in GEANT4,

G4MuonDecayChannel::DecayIt(G4double) in GEANT4.8.0 has apparent memory leaks;

G4RotationMatrix *rot= new G4RotationMatrix()
G4ThreeVector *direction0 =new G4ThreeVector(0.0,0.0,1.0);
G4ThreeVector *direction1 =new G4ThreeVector(sintheta,0.0,costheta);
G4ThreeVector *direction2 =new
G4ThreeVector(-Ene/Enm*sintheta,0,-Ee/Enm-Ene/Enm*costheta);

Those objects must be deleted at the end or changed to value-type objects.

Sincerely,

Yoshinori Sato
Comment 1 kurasige 2006-04-28 01:38:59 CEST
The bug will be fixed in the next release.
Than you.