]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ipcbase.cpp
Partially applied patch [ 763900 ] fix for vertical toolbar
[wxWidgets.git] / src / common / ipcbase.cpp
index cc4e0a8ef18ec524a4bd49aa832be313ad3849e3..7d74dca6ba7963af8337466a4d64bcc38a9d6690 100644 (file)
@@ -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;