[PATCH wayland] protocol: Suggest get_registry not be called frequently

Daniel Stone daniel at fooishbar.org
Fri Sep 29 20:20:13 UTC 2017


On 29 September 2017 at 19:46, Derek Foreman <derekf at osg.samsung.com> wrote:
> I've heard some complaints that wl_display.get_registry "leaks"
> server memory because wl_registry has no destructor.  While this isn't
> strictly true - all those resources are freed when the client
> disconnects - it's a bit of a gotcha for neophytes.
>
> Since wl_registry's version is not requested in any way through
> wl_display.get_registry, we can't add a destructor request without
> breaking ABI.  So let's be a little more clear about the result
> of getting too many wl_registry objects.
>
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>

Reviewed-by: Daniel Stone <daniels at collabora.com>


More information about the wayland-devel mailing list