| Summary: | G4VSteppingVerbose static instance variable is not cleared | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | andrey.nakin |
| Component: | run | Assignee: | asai |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | andrey.nakin |
| Priority: | P4 | ||
| Version: | 10.4 | ||
| Hardware: | All | ||
| OS: | All | ||
Thanks. This is now fixed in the development version and will be available in the next release. |
G4VSteppingVerbose is a singleton class that holds its instance in G4VSteppingVerbose::fInstance static field. This field is initialized in G4VSteppingVerbose::SetManager method but does not seem to be cleared anywhere. Suggested fix: File: G4VSteppingVerbose.cc Method: G4VSteppingVerbose::~G4VSteppingVerbose G4VSteppingVerbose::~G4VSteppingVerbose(){ fInstance = 0; // <-- this is the patch }