The Stack Overflow podcast is back! Listen to an interview with our new CEO.

 2 added 5 characters in body edited Jun 24 '17 at 18:10 Jamal♦ 32.1k1212 gold badges123123 silver badges231231 bronze badges Every time when you are deleting bufferbuffer first, you have to check, if _size >1 if_size > 1. If so, then you are using delete []delete[], otherwise just deletedelete. if(m_size >1) delete [] buffor; delete buffor;  Every time when you are deleting buffer first you have to check, if _size >1 if so, then you are using delete [] otherwise just delete. if(m_size >1) delete [] buffor; delete buffor;  Every time you are deleting buffer first, you have to check if _size > 1. If so, then you are using delete[], otherwise just delete. if(m_size >1) delete [] buffor; delete buffor;  1 answered Jun 24 '17 at 17:45 Maciej 1111 bronze badge Every time when you are deleting buffer first you have to check, if _size >1 if so, then you are using delete [] otherwise just delete. if(m_size >1) delete [] buffor; delete buffor;