aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-20 19:50:47 +0200
committersapier <Sapier at GMX dot net>2014-06-20 19:50:47 +0200
commite81454fb387cd98b4a63ade83a9eb41f1bdca278 (patch)
treec132631eea5b70cf828cbba60b4ae6d9bedbaef4 /src/guiFormSpecMenu.cpp
parentef8cdd890cd36b1fde54b44e125edf7603821a53 (diff)
downloadminetest-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.cpp5
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;