@@ -98,6 +98,10 @@ std::string String_convert::gbk_to_utf8(std::string src_str)
{
strTemp = dst_str;
}
+ if ( dst_str )
+ {
+ delete(dst_str);
+ }
return strTemp;
std::string String_convert::utf8_to_gbk(std::string src_str)
@@ -110,6 +114,10 @@ std::string String_convert::utf8_to_gbk(std::string src_str)