Skip to content

Commit 7402c75

Browse files
committed
fix a bug of fixMGI
#392
1 parent 017622a commit 7402c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/read.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ bool Read::fixMGI() {
180180
int len = mName->length();
181181
if((*mName)[len-1]=='1' || (*mName)[len-1]=='2') {
182182
if((*mName)[len-2] == '/') {
183+
delete mName;
183184
mName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2));
184185
return true;
185186
}

0 commit comments

Comments
 (0)