ATLASRECTS-5680 : Try to fix memory leak
Use unique_ptr here.
Trk::PerigeeSurface mySurface( primaryVertex.position() );
std::unique_ptr<const Trk::TrackParameters> myMeasuredPerigee(m_extrapolator->extrapolate( track,mySurface ));
if ( !myMeasuredPerigee) {
ATH_MSG_DEBUG( " Extrapolation to primary vertex failed. Skipping track " );
compatibilityDecorator ( track ) = 0.;
return 0;
}
Since this file had quite a lot of white spaces is easier to review if you tick the hide whitespace in the diff.
Edited by Christos Anastopoulos