mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix memory leak in GUIHyperText (#9489)
This commit is contained in:
parent
7a7bfdca7c
commit
b42493fb4c
3 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue