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
This diff is collapsed.
Please register or sign in to comment