Fixed wxexpr.cpp bug (quote wasn't being removed in new MB code);
fixed one of the remaining memory leaks (wxMSW, wxDefaultValidator) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1197,13 +1197,13 @@ char *wxmake_string(char *str)
|
||||
int len, i;
|
||||
const wxMB2WXbuf sbuf = wxConv_libc.cMB2WX(str);
|
||||
|
||||
str++; /* skip leading quote */
|
||||
// str++; /* skip leading quote */
|
||||
len = wxStrlen(sbuf) - 1; /* ignore trailing quote */
|
||||
|
||||
s = new wxChar[len + 1];
|
||||
|
||||
t = s;
|
||||
for(i=0; i<len; i++)
|
||||
for(i=1; i<len; i++) // 1 since we want to skip leading quote
|
||||
{
|
||||
if (sbuf[i] == _T('\\') && sbuf[i+1] == _T('"'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user