diff options
| author | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-05-01 22:04:06 +0200 | 
|---|---|---|
| committer | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2011-05-01 22:04:06 +0200 | 
| commit | 8fae347ba9d03faf8cca3d76b23a0985d85cccb3 (patch) | |
| tree | 5f2ab9685e8ab411115f453e9bd826879585080a /indra | |
| parent | f2d61c7371171e0ee1329186116c585aa5de7f52 (diff) | |
VWR-25654 FIXED memory leak in LLTranslate::getTranslateUrl
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/lltranslate.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index 050e34ade9..93a222d82a 100644 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -82,7 +82,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 escaped_mesg(curl_str); +	curl_free(curl_str);  	translate_url = m_GoogleURL  		+ escaped_mesg + m_GoogleLangSpec | 
