]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct malloc()/delete[] mismatch.
authorMattia Barbon <mbarbon@cpan.org>
Wed, 5 Jan 2005 07:29:24 +0000 (07:29 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 5 Jan 2005 07:29:24 +0000 (07:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sstream.cpp

index cd9a0a1cdcf6adccec1c4fd6ef2362eccec23279..4228a8a19e31fd5d0966c98151eba29a4dda3864 100644 (file)
@@ -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
 }