mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
fix memory leaks introduced by invalid gettext usage
This commit is contained in:
@@ -1501,7 +1501,9 @@ int main(int argc, char *argv[])
|
||||
while(device->run() && kill == false)
|
||||
{
|
||||
// Set the window caption
|
||||
device->setWindowCaption((std::wstring(L"Minetest [")+wgettext("Main Menu")+L"]").c_str());
|
||||
wchar_t* text = wgettext("Main Menu");
|
||||
device->setWindowCaption((std::wstring(L"Minetest [")+text+L"]").c_str());
|
||||
delete[] text;
|
||||
|
||||
// This is used for catching disconnects
|
||||
try
|
||||
|
Reference in New Issue
Block a user