Clear stream pointer. As we set loaded to FALSE there's no reason to keep the potential stream. --- src/cd-scsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cd-scsi.c b/src/cd-scsi.c index 62c58942..25842b3b 100644 --- a/src/cd-scsi.c +++ b/src/cd-scsi.c @@ -650,6 +650,8 @@ int cd_scsi_dev_unrealize(CdScsiTarget *st, uint32_t lun) g_clear_pointer(&dev->version, g_free); g_clear_pointer(&dev->serial, g_free); + g_clear_object(&dev->stream); + dev->loaded = FALSE; dev->realized = FALSE; dev->power_cond = CD_SCSI_POWER_STOPPED; -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel