mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
NETWORKING: Fix delete instead of free
This commit is contained in:
parent
21778dcb80
commit
22943ee368
@ -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…
Reference in New Issue
Block a user