diff options
author | sapier <Sapier at GMX dot net> | 2014-06-20 19:50:47 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-20 19:50:47 +0200 |
commit | e81454fb387cd98b4a63ade83a9eb41f1bdca278 (patch) | |
tree | c132631eea5b70cf828cbba60b4ae6d9bedbaef4 /src/guiFormSpecMenu.cpp | |
parent | ef8cdd890cd36b1fde54b44e125edf7603821a53 (diff) | |
download | minetest-e81454fb387cd98b4a63ade83a9eb41f1bdca278.tar.gz minetest-e81454fb387cd98b4a63ade83a9eb41f1bdca278.tar.bz2 minetest-e81454fb387cd98b4a63ade83a9eb41f1bdca278.zip |
Fix small memory leaks on shutdown
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r-- | src/guiFormSpecMenu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index f69f1b9a5..6073ed7cc 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -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; |