wxConnectionBase::~wxConnectionBase()
{
if ( m_deletebufferwhendone )
- delete m_buffer;
+ delete [] m_buffer;
}
/* static */
{ // need to resize buffer
if ( m_deletebufferwhendone )
{ // we're in charge of buffer, increase it
- if ( m_buffer )
- delete m_buffer;
+ delete [] m_buffer;
m_buffer = new char[bytes];
m_buffersize = bytes;
return m_buffer;