From 53dd7819277c53954d1298dfffa5287c306db8d0 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Wed, 27 Jun 2018 18:09:45 +0200 Subject: Fix memory leak in guiConfirmRegistration --- src/util/string.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') 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)); -- cgit v1.2.3