[Wayland-bugs] [Bug 81745] New: wl_data_device lacks destructor protocol, causes leaks
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jul 25 07:28:24 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=81745
Priority: medium
Bug ID: 81745
Assignee: wayland-bugs at lists.freedesktop.org
Summary: wl_data_device lacks destructor protocol, causes leaks
Severity: major
Classification: Unclassified
OS: All
Reporter: ppaalanen at gmail.com
Hardware: All
Status: NEW
Version: 1.5.0
Component: wayland
Product: Wayland
wl_data_device interface does not have a destructor defined in the protocol,
which means that the server cannot know if a client destroys a wl_data_device
object. This leaks the server-side resource.
To make things worse, wl_data_device.data_offer *event* creates a new
wl_data_offer protocol object.
If a client has destroyed a wl_data_device, the server will not know about it,
and will keep sending data_offer events as appropriate. As the client does not
track the wl_data_device object anymore, those events will be ignored in the
client. This means that in the server, wl_data_offer objects just keep piling
up, as the server cannot destroy them on its own.
If possible, we should add destructor protocol to wl_data_device interface.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140725/510f218b/attachment.html>
More information about the Wayland-bugs
mailing list