]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ipcbase.cpp
fixed missing semicolons, as reported by check_syntax.sh
[wxWidgets.git] / src / common / ipcbase.cpp
index ee7e34278f476aa8ade3961f13d5afce635bc042..d96b9374a9463000fdebde9ad368726acecf0ddc 100644 (file)
@@ -62,7 +62,7 @@ wxConnectionBase::wxConnectionBase(const wxConnectionBase& copy)
 wxConnectionBase::~wxConnectionBase()
 {
   if ( m_deletebufferwhendone )
-    delete m_buffer;
+    delete [] m_buffer;
 }
 
 /* static */
@@ -120,8 +120,7 @@ void *wxConnectionBase::GetBufferAtLeast( size_t bytes )
   {  // 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;