1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-01 23:50:22 +02:00

Fix memory leak in GUIHyperText (#9489)

This commit is contained in:
DS
2020-03-10 20:32:38 +01:00
committed by GitHub
parent 7a7bfdca7c
commit b42493fb4c
3 changed files with 7 additions and 6 deletions

View File

@ -1654,8 +1654,9 @@ void GUIFormSpecMenu::parseHyperText(parserData *data, const std::string &elemen
);
spec.ftype = f_Unknown;
new GUIHyperText(
spec.flabel.c_str(), Environment, this, spec.fid, rect, m_client, m_tsrc);
GUIHyperText *e = new GUIHyperText(spec.flabel.c_str(), Environment, this,
spec.fid, rect, m_client, m_tsrc);
e->drop();
m_fields.push_back(spec);
}