Commit 29890d1a authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.cpp, tests: delete AlignBox objects

parent 7aa2d14f
...@@ -995,6 +995,9 @@ void FineSegmenter::FineSegmentD(Germline *germline, bool several_D, ...@@ -995,6 +995,9 @@ void FineSegmenter::FineSegmentD(Germline *germline, bool several_D,
boxes.push_back(box_J); boxes.push_back(box_J);
code = codeFromBoxes(boxes, sequence_or_rc); code = codeFromBoxes(boxes, sequence_or_rc);
delete box_D1;
delete box_D2;
finishSegmentationD(); finishSegmentationD();
} }
} }
......
...@@ -36,6 +36,9 @@ void testOverlap() ...@@ -36,6 +36,9 @@ void testOverlap()
TAP_TEST(box_A->end == 6, TEST_FINE_SEGMENT_OVERLAP, "end position of left region : " << box_A); TAP_TEST(box_A->end == 6, TEST_FINE_SEGMENT_OVERLAP, "end position of left region : " << box_A);
TAP_TEST(box_C->start == 7, TEST_FINE_SEGMENT_OVERLAP, "start position of right region : " << box_C); TAP_TEST(box_C->start == 7, TEST_FINE_SEGMENT_OVERLAP, "start position of right region : " << box_C);
delete box_A;
delete box_C;
} }
void testFineSegment() void testFineSegment()
......
Markdown is supported
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