summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/picture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev/picture.cpp')
-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;
+ }
}