Skip to content

Commit

Permalink
ui/clipboard: release owned grabs on unregister
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
Message-Id: <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
elmarco committed Aug 31, 2021
1 parent 1387865 commit 7424bfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7424bfa

Please sign in to comment.