[PATCH wayland] data-device: fix crash when a client dies during a drag with an icon

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Fri May 25 00:40:28 PDT 2012


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.
---
 src/data-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/data-device.c b/src/data-device.c
index 8472da4..a7fc6d2 100644
--- a/src/data-device.c
+++ b/src/data-device.c
@@ -284,7 +284,7 @@ static void
 destroy_data_device_icon(struct wl_listener *listener, void *data)
 {
 	struct wl_seat *seat = container_of(listener, struct wl_seat,
-					    drag_data_source_listener);
+					    drag_icon_listener);
 
 	seat->drag_surface = NULL;
 }
-- 
1.7.4.1



More information about the wayland-devel mailing list