diff options
-rw-r--r-- | src/mesh_generator_thread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |