aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 7b204f9517..064389dcd0 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -245,6 +245,8 @@ void qdev_free(DeviceState *dev)
#endif
if (dev->info->reset)
qemu_unregister_reset(dev->info->reset, dev);
+ if (dev->info->exit)
+ dev->info->exit(dev);
}
QLIST_REMOVE(dev, sibling);
qemu_free(dev);