ui/vdagent: disconnect handlers and reset state on finalize
commit5e0a24e8685892f52826567b216fe34f98bc9d58
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 5 Aug 2021 13:57:06 +0000 (5 17:57 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 31 Aug 2021 13:25:14 +0000 (31 17:25 +0400)
tree288ee321f98d79cdd59a4eb25abc7ba803314bf0
parent7424bfaa99b629e243bf05debd3eeb69c1dd670f
ui/vdagent: disconnect handlers and reset state on finalize

Avoid handlers being called with dangling pointers when the object is
freed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210805135715.857938-10-marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vdagent.c