diff options
author | sapier <Sapier at GMX dot net> | 2013-04-07 19:15:17 +0200 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-07 22:50:53 -0400 |
commit | 98182f6097ec0568545f5612f6ae1354e110333d (patch) | |
tree | 125762a72e9c47244b38d013c9b9242db465d3ee /src/guiTextInputMenu.cpp | |
parent | cd27c8ef5df35edd2cc606291f3f7985a61d41d5 (diff) | |
download | minetest-98182f6097ec0568545f5612f6ae1354e110333d.tar.gz minetest-98182f6097ec0568545f5612f6ae1354e110333d.tar.bz2 minetest-98182f6097ec0568545f5612f6ae1354e110333d.zip |
fix memory leaks introduced by invalid gettext usage
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r-- | src/guiTextInputMenu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp index f4e3bb5ba..c15eeedc5 100644 --- a/src/guiTextInputMenu.cpp +++ b/src/guiTextInputMenu.cpp @@ -127,8 +127,10 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize) { core::rect<s32> rect(0, 0, 140, 30); rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25); + wchar_t* text = wgettext("Proceed"); Environment->addButton(rect, this, 257, - wgettext("Proceed")); + text); + delete[] text; } changeCtype("C"); } |