[Scummvm-git-logs] scummvm master -> 22943ee3688eb639528a4878cea65cfac9642599
SupSuper
supsuper at gmail.com
Fri Mar 20 16:02:48 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
22943ee368 NETWORKING: Fix delete instead of free
Commit: 22943ee3688eb639528a4878cea65cfac9642599
https://github.com/scummvm/scummvm/commit/22943ee3688eb639528a4878cea65cfac9642599
Author: SupSuper (supsuper at gmail.com)
Date: 2020-03-20T16:02:16Z
Commit Message:
NETWORKING: Fix delete instead of free
Changed paths:
backends/networking/sdl_net/handlerutils.cpp
diff --git a/backends/networking/sdl_net/handlerutils.cpp b/backends/networking/sdl_net/handlerutils.cpp
index 36f615f93b..22bea0755a 100644
--- a/backends/networking/sdl_net/handlerutils.cpp
+++ b/backends/networking/sdl_net/handlerutils.cpp
@@ -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;
}
}
More information about the Scummvm-git-logs
mailing list