mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
CPU/CodeCache: Don't leak blocks on shutdown
This commit is contained in:
parent
7a87b9b5bb
commit
a43a0a14cc
|
@ -19,7 +19,10 @@ static constexpr u32 RECOMPILER_FAR_CODE_CACHE_SIZE = 32 * 1024 * 1024;
|
|||
|
||||
CodeCache::CodeCache() = default;
|
||||
|
||||
CodeCache::~CodeCache() = default;
|
||||
CodeCache::~CodeCache()
|
||||
{
|
||||
Flush();
|
||||
}
|
||||
|
||||
void CodeCache::Initialize(System* system, Core* core, Bus* bus, bool use_recompiler)
|
||||
{
|
||||
|
|
|
@ -254,8 +254,8 @@ void System::DestroyComponents()
|
|||
m_gpu.reset();
|
||||
m_interrupt_controller.reset();
|
||||
m_dma.reset();
|
||||
m_bus.reset();
|
||||
m_cpu_code_cache.reset();
|
||||
m_bus.reset();
|
||||
m_cpu.reset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue