On Thu, Apr 30, 2026 at 01:02:50AM +0400, Marc-André Lureau wrote: > Previously, VNC displays were never torn down on QEMU exit, leaking > resources and leaving connected clients with unclean disconnects. > > Add vnc_cleanup() to free all VNC displays during qemu_cleanup(). > Make vnc_display_close() initiate disconnection of active clients, > and have vnc_display_free() drain the main loop until all clients > have completed their teardown, instead of asserting the client list > is empty. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > include/ui/console.h | 1 + > system/runstate.c | 5 +++++ > ui/vnc.c | 20 ++++++++++++++++++-- > 3 files changed, 24 insertions(+), 2 deletions(-) >
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
