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:
parent
738c8b102b
commit
53dd781927
2 changed files with 6 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue