Fix memory leak

This commit is contained in:
Benau 2022-06-09 15:18:20 +08:00
parent d85c1e3ee7
commit 8ea38a6103

View File

@ -12,6 +12,8 @@ GEVulkanSceneManager::GEVulkanSceneManager(irr::video::IVideoDriver* driver,
: CSceneManager(driver, fs, cursor_control, : CSceneManager(driver, fs, cursor_control,
new GEVulkanMeshCache(), gui_environment) new GEVulkanMeshCache(), gui_environment)
{ {
// CSceneManager grabbed it
getMeshCache()->drop();
} // GEVulkanSceneManager } // GEVulkanSceneManager
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------