Skip to content

Commit 1517e86

Browse files
committed
fix the crash when outputing overlapped file
#616
1 parent 9e07825 commit 1517e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ bool PairEndProcessor::processPairEnd(ReadPack* leftPack, ReadPack* rightPack, T
461461
if(r1 != NULL && r2!=NULL && mOverlappedWriter) {
462462
OverlapResult ov = OverlapAnalysis::analyze(r1, r2, mOptions->overlapDiffLimit, mOptions->overlapRequire, 0);
463463
if(ov.overlapped) {
464-
Read* overlappedRead = new Read(r1->mName, new string(r1->mSeq->substr(max(0,ov.offset)), ov.overlap_len), r1->mStrand, new string(r1->mQuality->substr(max(0,ov.offset)), ov.overlap_len));
464+
Read* overlappedRead = new Read(new string(*r1->mName), new string(r1->mSeq->substr(max(0,ov.offset)), ov.overlap_len), new string(*r1->mStrand), new string(r1->mQuality->substr(max(0,ov.offset)), ov.overlap_len));
465465
overlappedRead->appendToString(overlappedOut);
466466
recycleToPool1(tid, overlappedRead);
467467
}

0 commit comments

Comments
 (0)