aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-10-24 16:22:05 +0200
committerKahrl <kahrl@gmx.net>2014-10-24 21:14:48 +0200
commitb49e5cfc7013cef7e9af79d17e04f7e7e4c377d4 (patch)
tree7b8c98c13f4598dba70f2c30118f8f5b7bebcac7 /src/guiEngine.cpp
parent73bf791fe12d4214d29b6b872940ede634651ce8 (diff)
downloadminetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.tar.gz
minetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.tar.bz2
minetest-b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.zip
Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r--src/guiEngine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp
index 41a522caf..e53b52b01 100644
--- a/src/guiEngine.cpp
+++ b/src/guiEngine.cpp
@@ -190,7 +190,7 @@ GUIEngine::GUIEngine( irr::IrrlichtDevice* dev,
m_texture_source,
m_formspecgui,
m_buttonhandler,
- NULL, NULL);
+ NULL);
m_menu->allowClose(false);
m_menu->lockSize(true,v2u32(800,600));
@@ -220,8 +220,7 @@ GUIEngine::GUIEngine( irr::IrrlichtDevice* dev,
}
m_menu->quitMenu();
- m_menu->remove();
- delete m_menu;
+ m_menu->drop();
m_menu = NULL;
}