The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 added 5 characters in body
source | link

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
source | link

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;