Skip to content
Snippets Groups Projects
Commit 87849093 authored by Guoyi Tu's avatar Guoyi Tu Committed by Marc-André Lureau
Browse files

ui/vdagent: Unregister input handler of mouse during finalization


Input handler resource should be released when
VDAgentChardev object finalize

Signed-off-by: default avatarGuoyi Tu <tugy@chinatelecom.cn>
Signed-off-by: default avatardengpengcheng <dengpc12@chinatelecom.cn>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <e7f5e172abf797d454e00a4bbe53af83e4aa4497.1692281173.git.tugy@chinatelecom.cn>
parent 1b4fd516
No related branches found
No related tags found
No related merge requests found
......@@ -926,6 +926,9 @@ static void vdagent_chr_fini(Object *obj)
migrate_del_blocker(vd->migration_blocker);
vdagent_disconnect(vd);
if (vd->mouse_hs) {
qemu_input_handler_unregister(vd->mouse_hs);
}
buffer_free(&vd->outbuf);
error_free(vd->migration_blocker);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment