Skip to content

Commit

Permalink
Fix mem leak in mesh cache (#5781)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeno- authored and nerzhul committed May 20, 2017
1 parent ce98022 commit d176dab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mesh_generator_thread.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit d176dab

Please sign in to comment.