1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix memory leak in guiConfirmRegistration

This commit is contained in:
HybridDog 2018-06-27 18:09:45 +02:00 committed by SmallJoker
parent 738c8b102b
commit 53dd781927
2 changed files with 6 additions and 3 deletions

View file

@ -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));