diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-02-08 20:20:22 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2021-02-09 19:33:13 +0000 |
commit | 8e01ea1e045c2ef1f417154c5f55360ffb14ad9e (patch) | |
tree | 658dbb17eb7c20007726c9d6ad3e3b519e54cfd3 /src/wayland/meta-xwayland-dnd.c | |
parent | 3799606fc2324f3b9c6f4cfb6f79cdebafe624b0 (diff) | |
download | mutter-8e01ea1e045c2ef1f417154c5f55360ffb14ad9e.tar.gz |
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1720>
Diffstat (limited to 'src/wayland/meta-xwayland-dnd.c')
-rw-r--r-- | src/wayland/meta-xwayland-dnd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |