From: Vadim Zeitlin Date: Sun, 2 Apr 2006 14:57:36 +0000 (+0000) Subject: added wxBuffer::reset() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/11fead7c4651091aa20c3a8c2dd4d25586460108 added wxBuffer::reset() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 1c54c50404..fa8f3215c5 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -64,6 +64,12 @@ public: \ return p; \ } \ \ + void reset() \ + { \ + free(m_str); \ + m_str = NULL; \ + } \ + \ classname(const classname& src) \ : m_str(src.release()) \ { \