Skip to content
Snippets Groups Projects
Commit e60b7752 authored by Vincent Pascuzzi's avatar Vincent Pascuzzi
Browse files

Fix use of smart pointers in `Trk::RectangularSegmentation'

The previous commit to this class incorrectly used smart pointers,
specifically, their ownership was not released. Moreover, the wrapped
objects were initialised incorrectly, leading to the same
`Trk::PlaneSurface' being duplicated, filling the vector with the same
surface.

Although it appears the owning objects free memory, we play it safe by
keeping the smart pointers here, as opposed to resorting back to raw
ones.


Former-commit-id: d79f604018172cc9533a35c453d05a589554a346
parent 2b4ef135
No related branches found
No related tags found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment