diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp index f8d7e4c55..b0ec893b1 100644 --- a/src/core/cpu_code_cache.cpp +++ b/src/core/cpu_code_cache.cpp @@ -142,6 +142,8 @@ void CodeCache::Flush() for (auto& it : m_ram_block_map) it.clear(); + for (const auto& it : m_blocks) + delete it.second; m_blocks.clear(); #ifdef WITH_RECOMPILER m_code_buffer->Reset();