X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..4395fb21f651f8a08905c34507692ca7f902dfe5:/src/common/ipcbase.cpp diff --git a/src/common/ipcbase.cpp b/src/common/ipcbase.cpp index cc4e0a8ef1..af60bef9ac 100644 --- a/src/common/ipcbase.cpp +++ b/src/common/ipcbase.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "ipcbase.h" #endif @@ -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;