diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-15 13:27:48 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-15 13:28:00 +0100 |
commit | 2ec01d1901db46e5c3fa2d518f7220bf9e5a9154 (patch) | |
tree | 08f2931a2b9eb719929c7889518070b870bb470e /src/emu/emumem.cpp | |
parent | 27309ec9449d1ef886314bd59ac57aa5172f3038 (diff) |
Fix memory leak on address_space_specific destruction and add a missing init [O. Galibert]
Diffstat (limited to 'src/emu/emumem.cpp')
-rw-r--r-- | src/emu/emumem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp index 118b26d9342..62784459049 100644 --- a/src/emu/emumem.cpp +++ b/src/emu/emumem.cpp @@ -523,6 +523,11 @@ public: m_dispatch_write = m_root_write->get_dispatch(); } + ~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; |