diff options
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r-- | src/guiEngine.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp index f04f15820..2c5000d8b 100644 --- a/src/guiEngine.cpp +++ b/src/guiEngine.cpp @@ -299,6 +299,8 @@ GUIEngine::~GUIEngine() { video::IVideoDriver* driver = m_device->getVideoDriver(); assert(driver != 0); + + //TODO: clean up m_menu here lua_close(m_engineluastack); @@ -309,8 +311,9 @@ GUIEngine::~GUIEngine() if (m_textures[i] != 0) driver->removeTexture(m_textures[i]); } - - m_cloud.clouds->drop(); + + if (m_cloud.clouds) + m_cloud.clouds->drop(); } /******************************************************************************/ |