Skip to content

Commit

Permalink
BUG: Address memory leak in CastSpatialOpbjectTest
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Jun 9, 2020
1 parent ecad7ff commit a243e9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ itkCastSpatialObjectFilterTest(int, char *[])
using TubeListType = std::list<TubeType::Pointer>;
CastType::Pointer caster = CastType::New();
caster->SetInput(group);
TubeListType * tList = caster->GetTubes();
std::unique_ptr<TubeListType> tList(caster->GetTubes());

TubeType::Pointer tListTube = (*tList).begin()->GetPointer();

Expand Down

0 comments on commit a243e9d

Please sign in to comment.