Tooltips: Unify the tooltip[] and list[] description tooltip display functions (...
[oweals/minetest.git] / src / mesh_generator_thread.cpp
index 98173c788b4d525f5812478fb0ad56c69ba69b31..dce788a7cbddbfaef065833f57fe3bb5f39af7f4 100644 (file)
@@ -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;
                }