fix for a crash with wxUSE_STL == 1: test for failed conversion in GetValue()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-21 12:21:14 +00:00
parent 891bb1943f
commit 39ccbf9a31
2 changed files with 4 additions and 2 deletions

View File

@ -518,7 +518,8 @@ wxString wxTextCtrl::GetValue() const
#else
wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
#endif
tmp = buffer;
if ( buffer )
tmp = buffer;
g_free( text );
#else

View File

@ -518,7 +518,8 @@ wxString wxTextCtrl::GetValue() const
#else
wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
#endif
tmp = buffer;
if ( buffer )
tmp = buffer;
g_free( text );
#else