Commit e61c3df1 authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.{h,cpp}: delete AlignBox objects used in {Kmer,Fine}Segmenter

parent 6d7f1bb0
......@@ -402,6 +402,10 @@ KmerSegmenter::KmerSegmenter(Sequence seq, Germline *germline, double threshold,
KmerSegmenter::~KmerSegmenter() {
if (kaa)
delete kaa;
delete box_V;
delete box_D;
delete box_J;
}
KmerMultiSegmenter::KmerMultiSegmenter(Sequence seq, MultiGermline *multigermline, ostream *out_unsegmented,
......@@ -1053,3 +1057,8 @@ json KmerSegmenter::toJson() {
}
FineSegmenter::~FineSegmenter() {
delete box_V;
delete box_D;
delete box_J;
}
......@@ -299,7 +299,9 @@ class FineSegmenter : public Segmenter
*/
FineSegmenter(Sequence seq, Germline *germline, Cost segment_cost,
double threshold = THRESHOLD_NB_EXPECTED, int multiplier=1);
~FineSegmenter();
/**
* extend segmentation from VJ to VDJ
* @param germline: germline used
......
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