Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ui/vdagent: Unregister input handler of mouse during finalization
Input handler resource should be released when
VDAgentChardev object finalize

Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn>
Signed-off-by: dengpengcheng <dengpc12@chinatelecom.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <e7f5e172abf797d454e00a4bbe53af83e4aa4497.1692281173.git.tugy@chinatelecom.cn>
  • Loading branch information
Guoyi Tu authored and elmarco committed Sep 4, 2023
1 parent 1b4fd51 commit 8784909
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/vdagent.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8784909

Please sign in to comment.