NETWORKING: Fix delete instead of free
This commit is contained in:
parent
21778dcb80
commit
22943ee368
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue