emumem_aspace: Unref the root dispatch when destroying the address space

This commit is contained in:
Olivier Galibert 2021-11-26 12:54:34 +01:00
parent 5d1a567164
commit a7e18d4355

View File

@ -347,6 +347,11 @@ public:
m_dispatch_write = m_root_write->get_dispatch();
}
virtual ~address_space_specific() {
m_root_read ->unref();
m_root_write->unref();
}
std::pair<void *, void *> get_cache_info() override {
std::pair<void *, void *> rw;
rw.first = m_root_read;