wayland-device: Upgrade to v3 of seat

To prevent memory leaks.
This commit is contained in:
Jasper St. Pierre
2014-07-25 09:41:48 -04:00
parent 407a778bc5
commit 6c35ae199e
2 changed files with 4 additions and 4 deletions

View File

@ -1496,7 +1496,7 @@ seat_handle_capabilities (void *data,
}
else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && device->wl_pointer)
{
wl_pointer_destroy (device->wl_pointer);
wl_pointer_release (device->wl_pointer);
device->wl_pointer = NULL;
_gdk_device_set_associated_device (device->pointer, NULL);
@ -1533,7 +1533,7 @@ seat_handle_capabilities (void *data,
}
else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && device->wl_keyboard)
{
wl_keyboard_destroy (device->wl_keyboard);
wl_keyboard_release (device->wl_keyboard);
device->wl_keyboard = NULL;
_gdk_device_set_associated_device (device->keyboard, NULL);
@ -1570,7 +1570,7 @@ seat_handle_capabilities (void *data,
}
else if (!(caps & WL_SEAT_CAPABILITY_TOUCH) && device->wl_touch)
{
wl_touch_destroy (device->wl_touch);
wl_touch_release (device->wl_touch);
device->wl_touch = NULL;
_gdk_device_set_associated_device (device->touch, NULL);