mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix small memory leaks on shutdown
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user