From 12ef021b526487c0e7a7bfcfc19092128e79fbee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 8 Oct 2009 13:52:08 +0000 Subject: [PATCH] Fix new[]/delete mismatch in HelpGen. Closes #11290. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/HelpGen/src/scriptbinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/HelpGen/src/scriptbinder.cpp b/utils/HelpGen/src/scriptbinder.cpp index affd6634e4..0fbc6d6b72 100644 --- a/utils/HelpGen/src/scriptbinder.cpp +++ b/utils/HelpGen/src/scriptbinder.cpp @@ -52,7 +52,7 @@ ScriptStream::ScriptStream() ScriptStream::~ScriptStream() { - if ( m_pBuf ) delete m_pBuf; + delete [] m_pBuf; } void ScriptStream::WriteBytes( const void* srcBuf, size_t count ) @@ -74,7 +74,7 @@ void ScriptStream::WriteBytes( const void* srcBuf, size_t count ) if ( oldBuf ) { memcpy( m_pBuf, oldBuf, m_Size ); - delete oldBuf; + delete [] oldBuf; } }