diff --git a/src/DnaSeqStr.h b/src/DnaSeqStr.h index b9cb795dfe9864dfad63554e7bcadc19c7d67ffb..8bd7bc02089cc88e7471f0c878b5ae9478069e28 100644 --- a/src/DnaSeqStr.h +++ b/src/DnaSeqStr.h @@ -32,7 +32,7 @@ public : public: DnaSeqStr():fq_record_buf(new char[MAX_FQ_RECORD_LENGTH]) { - cout<<"Calling DnaSeqStr constructor"<<endl; + cout<<"Calling DnaSeqStr constructor"<<endl; length=0; start_idx=0; } @@ -44,8 +44,8 @@ public: } ~DnaSeqStr() { - cout<<"Calling DnaSeqStr destructor"<<endl; - delete fq_record_buf[]; + cout<<"Calling DnaSeqStr destructor"<<endl; + delete[] fq_record_buf; } };