diff --git a/include/wx/private/json.h b/include/wx/private/json.h index f9ddff7fca..12d78e4a2e 100644 --- a/include/wx/private/json.h +++ b/include/wx/private/json.h @@ -22,6 +22,7 @@ bool DecodeString(const wxString& in, wxString* out) // String has to chart with a quote if (*(ch++) != '"') return false; + out->clear(); out->reserve(buf.length()); const wchar_t* end = buf.data() + buf.length() - 1; for (; ch < end; ++ch)