From d176dabeb4f04f9a1179cad9b23653fe6e19169e Mon Sep 17 00:00:00 2001 From: Zeno- Date: Sat, 20 May 2017 16:16:16 +1000 Subject: Fix mem leak in mesh cache (#5781) --- src/mesh_generator_thread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesh_generator_thread.cpp b/src/mesh_generator_thread.cpp index 98173c788..dce788a7c 100644 --- a/src/mesh_generator_thread.cpp +++ b/src/mesh_generator_thread.cpp @@ -286,6 +286,7 @@ void MeshUpdateQueue::cleanupCache() if (cached_block->refcount_from_queue == 0 && cached_block->last_used_timestamp < t_now - cache_seconds) { m_cache.erase(it++); + delete cached_block; } else { ++it; } -- cgit v1.2.3