]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed [ 728819 ] memory leak in ipcbase.cpp
authorJulian Smart <julian@anthemion.co.uk>
Mon, 28 Apr 2003 10:33:05 +0000 (10:33 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 28 Apr 2003 10:33:05 +0000 (10:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;