From da452b9eec5e85657dc931891efdfd4218abf680 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 8 Jun 2006 08:09:27 +0000 Subject: [PATCH] Missing dereference caused wrong wxString ctor to be used, leading to memory errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xml/xml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 4c6dcdd771..25ffc91ea9 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv, const wxWCharBuffer wbuf( wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL)); - return wxString(wbuf, conv); + return wxString(wbuf, *conv); } else // already in UTF-8, no conversion needed {