diff --git a/src/read.cpp b/src/read.cpp index 05a1bd1..b0f8884 100644 --- a/src/read.cpp +++ b/src/read.cpp @@ -180,6 +180,7 @@ bool Read::fixMGI() { int len = mName->length(); if((*mName)[len-1]=='1' || (*mName)[len-1]=='2') { if((*mName)[len-2] == '/') { + delete mName; mName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2)); return true; }