X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d5a34485ba36dac14bc4bf7ab788dcad2b22b9a..9ec0e7da983d3c4de9c7007142a72864214514ac:/src/common/sstream.cpp?ds=sidebyside 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 }