[mutter/wip/carlosg/xwayland-dnd-finish: 11/13] 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: 11/13] wayland: Plug XDnD drag source leak
- Date: Tue, 9 Feb 2021 15:06:03 +0000 (UTC)
commit e59ee36874cb8df86a9d42a3206dc0c675241824
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]