commit 738308daa7b3764684b6dad518fd7bfb8cf880d8 Author: Laurentiu Nicola Date: Tue Jan 26 08:03:55 2016 +0200 Fix NULL dereference in weston_pointer_send_frame diff --git a/src/input.c b/src/input.c index 91813ec..1042c67 100644 --- a/src/input.c +++ b/src/input.c @@ -390,6 +390,9 @@ weston_pointer_send_frame(struct weston_pointer *pointer) struct wl_resource *resource; struct wl_list *resource_list; + if (!pointer->focus_client) + return; + resource_list = &pointer->focus_client->pointer_resources; wl_resource_for_each(resource, resource_list) pointer_send_frame(resource);