[Spice-devel] [PATCH spice-gtk v2 23/33] fixup! usb-redir: add files for SCSI and USB MSC implementation
Frediano Ziglio
fziglio at redhat.com
Fri Aug 9 14:26:41 UTC 2019
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
More information about the Spice-devel
mailing list