summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2019-08-10 07:15:48 -0400
committer arbee <rb6502@users.noreply.github.com>2019-08-10 07:15:48 -0400
commit65bcb3be2b6235f49049719243bbd37e07114f59 (patch)
treefde30a3dd94e7ccee2a1df1e8228bdb0d0d56643 /src/devices/imagedev
parent52505e0d2fb59a37d8799900a7e5d6ac7fd673c2 (diff)
apple2: save states and file manager hotloading image support for ComputerEyes (nw)
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/picture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/imagedev/picture.cpp b/src/devices/imagedev/picture.cpp
index 2767d80a1d4..87524aa7457 100644
--- a/src/devices/imagedev/picture.cpp
+++ b/src/devices/imagedev/picture.cpp
@@ -61,4 +61,9 @@ image_init_result picture_image_device::call_load()
void picture_image_device::call_unload()
{
+ if (m_picture)
+ {
+ delete m_picture;
+ m_picture = nullptr;
+ }
}