1
0
Fork 0

Fix mem leak in mesh cache (#5781)

mutilcraft-mt53
Zeno- 2017-05-20 16:16:16 +10:00 committed by Loïc Blot
parent ce9802266e
commit d176dabeb4
1 changed files with 1 additions and 0 deletions

View 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;
}