NETWORKING: Fix delete instead of free

This commit is contained in:
SupSuper 2020-03-20 16:02:16 +00:00
parent 21778dcb80
commit 22943ee368

View File

@ -179,7 +179,7 @@ Common::String HandlerUtils::toUtf8(const char *text) {
char *utf8Text = Common::Encoding::convert("utf-8", guiEncoding, text, strlen(text));
if (utf8Text != nullptr) {
Common::String str(utf8Text);
delete [] utf8Text;
free(utf8Text);
return str;
}
}