ui/clipboard: release owned grabs on unregister
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-9-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
1387865eca
commit
7424bfaa99
@ -13,6 +13,12 @@ void qemu_clipboard_peer_register(QemuClipboardPeer *peer)
|
||||
|
||||
void qemu_clipboard_peer_unregister(QemuClipboardPeer *peer)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < QEMU_CLIPBOARD_SELECTION__COUNT; i++) {
|
||||
qemu_clipboard_peer_release(peer, i);
|
||||
}
|
||||
|
||||
notifier_remove(&peer->update);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user