[PATCH] compositor: fix dangling pointer

Pavel Sterin codeatstake at googlemail.com
Wed Feb 15 00:02:54 PST 2012

On Wednesday 15 February 2012 09:35:40 Pekka Paalanen wrote:
> Looks ok as a stop-gap measure to me, FWIW.

I somehow managed to skip a line from the first commit, and then forgot it in 
the patch... there must be a line like:

struct weston_input_device *device;

before wl_list_for_each, or the code will not compile, I am very sorry.
Also, is it wise to assume, that grab is not NULL? Maybe it should be checked 
before dereferencing.


More information about the wayland-devel mailing list