]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sstream.cpp
send wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED only once after end of dragging and...
[wxWidgets.git] / src / common / sstream.cpp
index cd9a0a1cdcf6adccec1c4fd6ef2362eccec23279..4228a8a19e31fd5d0966c98151eba29a4dda3864 100644 (file)
@@ -52,7 +52,8 @@ wxStringInputStream::wxStringInputStream(const wxString& s)
 wxStringInputStream::~wxStringInputStream()
 {
 #if wxUSE_UNICODE
 wxStringInputStream::~wxStringInputStream()
 {
 #if wxUSE_UNICODE
-    delete[] m_buf;
+    // Note: wx[W]CharBuffer uses malloc()/free()
+    free(m_buf);
 #endif
 }
 
 #endif
 }