Commit d50a5661 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

core/segment.cpp: delete all boxes used in FineSegmenter

parent 5b64e555
......@@ -1142,7 +1142,13 @@ json KmerSegmenter::toJson() {
FineSegmenter::~FineSegmenter() {
delete box_V;
delete box_D;
delete box_J;
// Push box_V, box_D, box_J in boxes if they are not already there
for (AlignBox* box: {box_V, box_D, box_J})
if (std::find(boxes.begin(), boxes.end(), box) == boxes.end())
// Delete all boxes
for (AlignBox* box: boxes)
delete box;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment