[mutter/wip/carlosg/xwayland-dnd-finish: 2/4] wayland: Plug XDnD drag source leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/xwayland-dnd-finish: 2/4] wayland: Plug XDnD drag source leak
- Date: Mon, 8 Feb 2021 19:37:17 +0000 (UTC)
commit dcce693ca60adff1e84e69b805e7fe41d82f3d1d
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Feb 8 20:20:22 2021 +0100
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.
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 77bf567839..6c97ffee2e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]