X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..3bb63e5c806e7ef549673822dc6e4d40aa9dbec9:/src/common/ipcbase.cpp diff --git a/src/common/ipcbase.cpp b/src/common/ipcbase.cpp index cc4e0a8ef1..7d74dca6ba 100644 --- a/src/common/ipcbase.cpp +++ b/src/common/ipcbase.cpp @@ -77,7 +77,7 @@ wxChar *wxConnectionBase::GetBufferAtLeast( size_t bytes ) { // need to resize buffer if ( m_deletebufferwhendone ) { // we're in charge of buffer, increase it - if ( !m_buffer ) + if ( m_buffer ) delete m_buffer; m_buffer = new wxChar[bytes]; m_buffersize = bytes;