Bug 91943

Summary: weston-dnd leaks memory allocated in create_drag_icon()
Product: Wayland Reporter: Michael Catanzaro <mcatanzaro>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: mcatanzaro
Version: 1.5.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 91944    
Bug Blocks: 91948    

Description Michael Catanzaro 2015-09-09 19:58:47 UTC
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.