don't crash if (char*)c_str() is used twice in a row on the same string and both pointers are used at the same time

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-04-10 19:13:52 +00:00
parent dc3065a56f
commit 05f32fc39e
2 changed files with 37 additions and 5 deletions

View File

@@ -2010,7 +2010,7 @@ private:
~ConvertedBuffer()
{ free(m_buf); }
operator const T*() const { return m_buf; }
operator T*() const { return m_buf; }
ConvertedBuffer& operator=(T *str)
{