All of the memory weston-dnd allocates in create_drag_icon() in dnd.c is leaked. weston-dnd expects the memory to be freed in response to data_source.cancelled, but this is never emitted except for the clipboard data source. One solution would be to enhance wl_data_source to indicate when the drag has been completed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.