-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor+fix: use collections and multi-factory in RichTrack_factory
; fix potential leaks in TrackPropagation
#656
Conversation
RichTrack_factory
RichTrack_factory
852c733
to
29fe147
Compare
RichTrack_factory
RichTrack_factory
; fix potential leaks in TrackPropagation
1c9e1a8
to
b325164
Compare
b325164
to
399c497
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there was a memory leak to fix here. Nice find.
Possibly more at #661. |
399c497
to
1c63180
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No additional comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No additional comments
Briefly, what does this PR introduce?
Collection
ofTrackSegments
inTrackPropagation::propagateToSurfaceList
, rather than a (potentially leaky) newTrackSegment
pointerRichTrack_factory
toTrackPropagation::propagateToSurfaceList
, which makes the PR diff appear to be more complex than it actually isreturn new raw_pointer
calls withreturn std::make_unique<...>(...)
, and update any code which depends on this changeRichTrackConfig
, which configures the factory, not the algorithm, since the factory is used to connect to therichgeo
service (and not the more generalTrackPropagation
algorithm)What kind of change does this PR introduce?
Please check if this PR fulfills the following:
irt-algo
branchDoes this PR introduce breaking changes? What changes might users need to make to their code?
no, unless the
TrackPropagation
algorithm is called by anything external of EICreconDoes this PR change default behavior?
no