MuonTruthAlgs: Fix memory leaks.
In MuonTruthDecorationAlg, firstPos and secondPos were not deleted on all possible code paths. Change them to use automatic allocation instead.
Showing
- MuonSpectrometer/MuonTruthAlgs/MuonTruthAlgs/MuonTrackTruthTool.h 1 addition, 1 deletion...trometer/MuonTruthAlgs/MuonTruthAlgs/MuonTrackTruthTool.h
- MuonSpectrometer/MuonTruthAlgs/src/MuonTrackTruthTool.cxx 5 additions, 8 deletionsMuonSpectrometer/MuonTruthAlgs/src/MuonTrackTruthTool.cxx
- MuonSpectrometer/MuonTruthAlgs/src/MuonTruthDecorationAlg.cxx 27 additions, 19 deletions...Spectrometer/MuonTruthAlgs/src/MuonTruthDecorationAlg.cxx
Loading
Please register or sign in to comment