Merge branch 'primary' into 'main'

gdk: don't leak wayland primary selection offers

See merge request GNOME/gtk!4458
This commit is contained in:
Carlos Garnacho 2022-02-11 14:29:19 +00:00
commit 64a1a1dd6b

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;
}