diff options
author | Zeno- <kde.psych@gmail.com> | 2017-05-20 16:16:16 +1000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-20 08:16:16 +0200 |
commit | d176dabeb4f04f9a1179cad9b23653fe6e19169e (patch) | |
tree | 094df65d60d4c33f5c9c487d38c6a9684ff89545 | |
parent | ce9802266ef1def339ec2e119c59090d0fd07c90 (diff) | |
download | minetest-d176dabeb4f04f9a1179cad9b23653fe6e19169e.tar.gz minetest-d176dabeb4f04f9a1179cad9b23653fe6e19169e.tar.bz2 minetest-d176dabeb4f04f9a1179cad9b23653fe6e19169e.zip |
Fix mem leak in mesh cache (#5781)
-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; } |