diff options
author | Guoyi Tu <tugy@chinatelecom.cn> | 2023-08-17 22:12:53 +0800 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-09-04 15:29:07 +0400 |
commit | 878490937c6273f27191e3a195c7a60fa68819b8 (patch) | |
tree | ce2197e337da8c500ccfdd7c3d37632bf4a8eb21 /ui | |
parent | 1b4fd51656556646b1a0842e596cb606d73e26cf (diff) | |
download | qemu-878490937c6273f27191e3a195c7a60fa68819b8.zip qemu-878490937c6273f27191e3a195c7a60fa68819b8.tar.gz qemu-878490937c6273f27191e3a195c7a60fa68819b8.tar.bz2 |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vdagent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vdagent.c b/ui/vdagent.c index 4b9a1fb..00d36a8 100644 --- a/ui/vdagent.c +++ b/ui/vdagent.c @@ -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); } |