diff options
Diffstat (limited to 'usb-redir.c')
-rw-r--r-- | usb-redir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-redir.c b/usb-redir.c index 84fa020b05..c74b1560bf 100644 --- a/usb-redir.c +++ b/usb-redir.c @@ -837,7 +837,7 @@ static void usbredir_handle_destroy(USBDevice *udev) { USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev); - qemu_chr_close(dev->cs); + qemu_chr_delete(dev->cs); /* Note must be done after qemu_chr_close, as that causes a close event */ qemu_bh_delete(dev->open_close_bh); |