mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix memory leak in guiConfirmRegistration
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user