summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHybridDog <ovvv@web.de>2018-06-27 18:09:45 +0200
committerSmallJoker <mk939@ymail.com>2018-07-06 11:13:18 +0200
commit53dd7819277c53954d1298dfffa5287c306db8d0 (patch)
treea9e4e1ce5ab0fe2687bee86bb0dc511b3e8130a5 /src/util
parent738c8b102ba02b6d243091759f2529614fc3c32b (diff)
downloadminetest-53dd7819277c53954d1298dfffa5287c306db8d0.tar.gz
minetest-53dd7819277c53954d1298dfffa5287c306db8d0.tar.bz2
minetest-53dd7819277c53954d1298dfffa5287c306db8d0.zip
Fix memory leak in guiConfirmRegistration
Diffstat (limited to 'src/util')
-rw-r--r--src/util/string.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/string.cpp b/src/util/string.cpp
index 25f573420..388e8d293 100644
--- a/src/util/string.cpp
+++ b/src/util/string.cpp
@@ -167,6 +167,8 @@ std::string wide_to_utf8(const std::wstring &input)
#endif // _WIN32
+// You must free the returned string!
+// The returned string is allocated using new
wchar_t *utf8_to_wide_c(const char *str)
{
std::wstring ret = utf8_to_wide(std::string(str));