projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce98022
)
Fix mem leak in mesh cache (#5781)
author
Zeno-
<kde.psych@gmail.com>
Sat, 20 May 2017 06:16:16 +0000
(16:16 +1000)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Sat, 20 May 2017 06:16:16 +0000
(08:16 +0200)
src/mesh_generator_thread.cpp
patch
|
blob
|
history
diff --git
a/src/mesh_generator_thread.cpp
b/src/mesh_generator_thread.cpp
index 98173c788b4d525f5812478fb0ad56c69ba69b31..dce788a7cbddbfaef065833f57fe3bb5f39af7f4 100644
(file)
--- 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;
}