Update unbind of the data device to use wl_resource_get_link.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-28 06:50:26 +01:00
parent bd3281c248
commit 77e6d1c8e1
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ _create_data_source(struct wl_client *client, struct wl_resource *resource, uint
static void
_unbind_data_device(struct wl_resource *resource)
{
wl_list_remove(&resource->link);
wl_list_remove(wl_resource_get_link(resource));
free(resource);
}