aboutsummaryrefslogtreecommitdiffstats
path: root/tests/display-test.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-02-22 13:37:26 +0800
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-02-26 11:55:17 +0200
commit25fcb88a269a434196cf89df835ba6326bacacab (patch)
tree2640485f1a68ec344ebb6ae675ae99a98fe56b98 /tests/display-test.c
parentdoc: Use enum argument type to make links in protocol documentation (diff)
downloadwayland-25fcb88a269a434196cf89df835ba6326bacacab.tar
wayland-25fcb88a269a434196cf89df835ba6326bacacab.tar.gz
wayland-25fcb88a269a434196cf89df835ba6326bacacab.tar.bz2
wayland-25fcb88a269a434196cf89df835ba6326bacacab.tar.lz
wayland-25fcb88a269a434196cf89df835ba6326bacacab.tar.xz
wayland-25fcb88a269a434196cf89df835ba6326bacacab.tar.zst
wayland-25fcb88a269a434196cf89df835ba6326bacacab.zip
client: Don't segfault when receiving error on destroyed object
If an error is received on a destroyed object, we'd get NULL passed to display_handle_error() instead of a pointer to a valid wl_proxy. The logging is changed to report [unknown interface] and [unknown id] instead of the actual interface name and id. The wl_display_get_protocol_error() documentation is updated to handle the situation. For when the proxy was NULL, the object id 0 and interface NULL is written. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> [Pekka: changed the error message wording] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'tests/display-test.c')
0 files changed, 0 insertions, 0 deletions