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;