data-device: fix crash when a client dies during a drag with an icon

The commit that split wl_input_device into wl_seat and friends changed
erroneously the drag icon destroy listener, causing it to operate into
an invalid pointer to a wl_seat.
This commit is contained in:
Ander Conselvan de Oliveira 2012-05-25 10:40:28 +03:00 committed by Kristian Høgsberg
parent c66f26024b
commit d422a733b4

View file

@ -284,7 +284,7 @@ static void
destroy_data_device_icon(struct wl_listener *listener, void *data) destroy_data_device_icon(struct wl_listener *listener, void *data)
{ {
struct wl_seat *seat = container_of(listener, struct wl_seat, struct wl_seat *seat = container_of(listener, struct wl_seat,
drag_data_source_listener); drag_icon_listener);
seat->drag_surface = NULL; seat->drag_surface = NULL;
} }