Merge pull request #1478 from Lahvuun/relative_pointer
Fix segfault in get_relative_pointer
This commit is contained in:
commit
5dde2e794d
|
@ -42,6 +42,7 @@ static void relative_pointer_destroy(struct wlr_relative_pointer_v1 *relative_po
|
||||||
|
|
||||||
wl_list_remove(&relative_pointer->link);
|
wl_list_remove(&relative_pointer->link);
|
||||||
wl_list_remove(&relative_pointer->seat_destroy.link);
|
wl_list_remove(&relative_pointer->seat_destroy.link);
|
||||||
|
wl_list_remove(&relative_pointer->pointer_destroy.link);
|
||||||
|
|
||||||
wl_resource_set_user_data(relative_pointer->resource, NULL);
|
wl_resource_set_user_data(relative_pointer->resource, NULL);
|
||||||
free(relative_pointer);
|
free(relative_pointer);
|
||||||
|
|
Loading…
Reference in New Issue