mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix small memory leaks on shutdown
This commit is contained in:
parent
ef8cdd890c
commit
e81454fb38
3 changed files with 10 additions and 4 deletions
|
@ -102,6 +102,11 @@ GUIFormSpecMenu::GUIFormSpecMenu(irr::IrrlichtDevice* dev,
|
|||
GUIFormSpecMenu::~GUIFormSpecMenu()
|
||||
{
|
||||
removeChildren();
|
||||
|
||||
for (u32 i = 0; i < m_tables.size(); ++i) {
|
||||
GUITable *table = m_tables[i].second;
|
||||
table->drop();
|
||||
}
|
||||
|
||||
delete m_selected_item;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue