From 8ea38a61033230402b5a230465a7272901bcaedc Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 9 Jun 2022 15:18:20 +0800 Subject: [PATCH] Fix memory leak --- lib/graphics_engine/src/ge_vulkan_scene_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/graphics_engine/src/ge_vulkan_scene_manager.cpp b/lib/graphics_engine/src/ge_vulkan_scene_manager.cpp index 62630f699..de7b0e562 100644 --- a/lib/graphics_engine/src/ge_vulkan_scene_manager.cpp +++ b/lib/graphics_engine/src/ge_vulkan_scene_manager.cpp @@ -12,6 +12,8 @@ GEVulkanSceneManager::GEVulkanSceneManager(irr::video::IVideoDriver* driver, : CSceneManager(driver, fs, cursor_control, new GEVulkanMeshCache(), gui_environment) { + // CSceneManager grabbed it + getMeshCache()->drop(); } // GEVulkanSceneManager // ----------------------------------------------------------------------------