From 8e01ea1e045c2ef1f417154c5f55360ffb14ad9e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 8 Feb 2021 20:20:22 +0100 Subject: [PATCH] wayland: Plug XDnD drag source leak This object is just being detached, with no code unref'ing it. Do this whenever the XDnD selection goes unowned, usually a good indication that the drag source no longer is one. Part-of: --- src/wayland/meta-xwayland-dnd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/meta-xwayland-dnd.c b/src/wayland/meta-xwayland-dnd.c index 77bf56783..6c97ffee2 100644 --- a/src/wayland/meta-xwayland-dnd.c +++ b/src/wayland/meta-xwayland-dnd.c @@ -909,6 +909,7 @@ meta_xwayland_dnd_handle_xfixes_selection_notify (MetaWaylandCompositor *composi else if (event->owner == None) { meta_xwayland_end_dnd_grab (data_device, FALSE); + g_clear_object (&dnd->source); } return FALSE;