From 468ddd4d495bf80a272718299ff85987596a1043 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Tue, 8 Feb 2022 22:47:01 +0100 Subject: [PATCH] gdk: don't leak wayland primary selection offers Signed-off-by: Julian Orth --- gdk/wayland/gdkprimary-wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/wayland/gdkprimary-wayland.c b/gdk/wayland/gdkprimary-wayland.c index 0cb436a82d..b8e0ff40fd 100644 --- a/gdk/wayland/gdkprimary-wayland.c +++ b/gdk/wayland/gdkprimary-wayland.c @@ -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; }