diff options
author | prep linden <prep@lindenlab.com> | 2011-06-10 10:36:27 -0400 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2011-06-10 10:36:27 -0400 |
commit | fd2b902f1d104bd7e6a989879d76b0e9797167c1 (patch) | |
tree | 22d5b89bad6ae70ef2160441d12ef2df166b15e8 /indra/newview/lltranslate.cpp | |
parent | fd51f4d17012eb0a53ca9d8c5ccb8c7b4542fc3a (diff) | |
parent | 7c57d593e505cb92d2dd152bef14653ef702e3ab (diff) |
merge
Diffstat (limited to 'indra/newview/lltranslate.cpp')
-rw-r--r-- | indra/newview/lltranslate.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index 2de7db38ed..2f60b6b90b 100644 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -28,6 +28,8 @@ #include "lltranslate.h" +#include <curl/curl.h> + #include "llbufferstream.h" #include "llui.h" #include "llversioninfo.h" @@ -76,7 +78,9 @@ void LLTranslate::translateMessage(LLHTTPClient::ResponderPtr &result, const std //static void LLTranslate::getTranslateUrl(std::string &translate_url, const std::string &from_lang, const std::string &to_lang, const std::string &mesg) { - std::string escaped_mesg = curl_escape(mesg.c_str(), mesg.size()); + char * curl_str = curl_escape(mesg.c_str(), mesg.size()); + std::string const escaped_mesg(curl_str); + curl_free(curl_str); translate_url = m_GoogleURL + escaped_mesg + m_GoogleLangSpec |