mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)
This commit is contained in:
@@ -1020,6 +1020,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,
|
||||
if (g_settings->getBool("freetype")) {
|
||||
e = (gui::IGUIElement *) new gui::intlGUIEditBox(spec.fdefault.c_str(),
|
||||
true, Environment, this, spec.fid, rect);
|
||||
e->drop();
|
||||
} else {
|
||||
#else
|
||||
{
|
||||
@@ -1119,6 +1120,7 @@ void GUIFormSpecMenu::parseTextArea(parserData* data,
|
||||
if (g_settings->getBool("freetype")) {
|
||||
e = (gui::IGUIEditBox *) new gui::intlGUIEditBox(spec.fdefault.c_str(),
|
||||
true, Environment, this, spec.fid, rect);
|
||||
e->drop();
|
||||
} else {
|
||||
#else
|
||||
{
|
||||
|
Reference in New Issue
Block a user