diff --git a/nsimpl.cpp b/nsimpl.cpp old mode 100644 new mode 100755 index 7ab97a5..126fe31 --- a/nsimpl.cpp +++ b/nsimpl.cpp @@ -438,9 +438,14 @@ wxString ns2wx(const PRUnichar* str) void wx2ns(const wxString& wxstr, nsEmbedString& nsstr) { size_t i, len = wxstr.Length(); + wxString::const_iterator p; PRUnichar* buf = new PRUnichar[len+1]; - for (i = 0; i < len; ++i) - buf[i] = wxstr.GetChar(i); + for (p=wxstr.begin(), i=0; + pAddRef(); return (nsIWebProgressListener*)p; } -} \ No newline at end of file +}