gdk: don't leak wayland primary selection offers

Signed-off-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
Julian Orth 2022-02-08 22:47:01 +01:00
parent c6d5816c95
commit 468ddd4d49

View File

@ -101,6 +101,7 @@ gdk_wayland_primary_claim_remote (GdkWaylandPrimary *cb,
{
GDK_DISPLAY_NOTE (gdk_clipboard_get_display (GDK_CLIPBOARD (cb)), CLIPBOARD, g_message ("%p: Ignoring clipboard offer for self", cb));
gdk_content_formats_unref (formats);
g_clear_pointer (&offer, zwp_primary_selection_offer_v1_destroy);
return;
}