Commit 3b2af89d16 for qemu.org
commit 3b2af89d16b46747b436de8ad36f8661eab001d8
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: Tue Jun 23 11:44:26 2026 +0400
ui: stop ui timer when closing
hwops is reset, so if the UI timer is pending it will crash.
Fixes: 9588d67e72 ("console: minimal hotplug suport")
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260623-b4-ui-v4-11-4656aec3398d@redhat.com>
diff --git a/ui/console.c b/ui/console.c
index a7c977d0c4..436444723a 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1136,6 +1136,7 @@ void qemu_graphic_console_close(QemuConsole *con)
trace_console_gfx_close(con->index);
object_property_set_link(OBJECT(con), "device", NULL, &error_abort);
qemu_graphic_console_set_hwops(con, &unused_ops, NULL);
+ timer_del(con->ui_timer);
if (con->gl) {
qemu_console_gl_scanout_disable(con);