]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sstream.cpp
Removed unnecessary casts
[wxWidgets.git] / src / common / sstream.cpp
index 51d7effef78822e796faa23244002bd8337e5006..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
 }