Problem 864 - G4MuonDecayChannel has memory leaks
Summary: G4MuonDecayChannel has memory leaks
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: particles (show other problems)
Version: 8.0
Hardware: PC Linux
: P2 major
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2006-04-27 23:41 CEST by yoshinori.sato
Modified: 2006-04-28 01:38 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.