1
0
Fork 0
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:
sapier 2014-06-20 19:50:47 +02:00
parent ef8cdd890c
commit e81454fb38
3 changed files with 10 additions and 4 deletions

View file

@ -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;