From da6e77b8d6a48f70f6741959e499561dd06ff472 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 5 Jan 2005 07:29:24 +0000 Subject: [PATCH] Correct malloc()/delete[] mismatch. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/sstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/sstream.cpp b/src/common/sstream.cpp index cd9a0a1cdc..4228a8a19e 100644 --- a/src/common/sstream.cpp +++ b/src/common/sstream.cpp @@ -52,7 +52,8 @@ wxStringInputStream::wxStringInputStream(const wxString& s) wxStringInputStream::~wxStringInputStream() { #if wxUSE_UNICODE - delete[] m_buf; + // Note: wx[W]CharBuffer uses malloc()/free() + free(m_buf); #endif } -- 2.50.0