@samitouri / QOSamiQemu / commits / 3b2af89d16

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>

Marc-André Lureau committed Jun 23, 2026 at 11:44 UTC 3b2af89d16b46747b436de8ad36f8661eab001d8
1 file changed +1
ui/console.c
+1
@@ -1136,6 +1136,7 @@ void qemu_graphic_console_close(QemuConsole *con)
1136 trace_console_gfx_close(con->index);
1137 object_property_set_link(OBJECT(con), "device", NULL, &error_abort);
1138 qemu_graphic_console_set_hwops(con, &unused_ops, NULL);
1139 + timer_del(con->ui_timer);
1140
1141 if (con->gl) {
1142 qemu_console_gl_scanout_disable(con);