diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 04c9e3a..64505ba 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -167,7 +167,7 @@ SideChain::~SideChain() uv_mutex_destroy(&m_seenWalletsLock); uv_mutex_destroy(&m_seenBlocksLock); uv_rwlock_destroy(&m_curDifficultyLock); - for (auto& it : m_blocksById) { + for (const auto& it : m_blocksById) { delete it.second; } }