Re: [PATCH wayland] Free non-legacy resources inside wl_resource_destroy

2013-06-20 Thread Kristian Høgsberg
On Tue, Jun 18, 2013 at 12:42:40PM -0500, Jason Ekstrand wrote: > This commit makes wl_resource_destroy automatically free all non-legacy > resource structures. Since wl_resource is now an opaque structure it > doesn't make sense for the clients to be freeing it. This checks to make > sure that i

[PATCH wayland] Free non-legacy resources inside wl_resource_destroy

2013-06-18 Thread Jason Ekstrand
This commit makes wl_resource_destroy automatically free all non-legacy resource structures. Since wl_resource is now an opaque structure it doesn't make sense for the clients to be freeing it. This checks to make sure that it was added through wl_client_add_object or wl_client_new_object and not