From 11fead7c4651091aa20c3a8c2dd4d25586460108 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Apr 2006 14:57:36 +0000 Subject: [PATCH] added wxBuffer::reset() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/buffer.h | 6 ++++++ 1 file changed, 6 insertions(+) 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()) \ { \ -- 2.45.2