aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
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));