Skip to content
Commit 25fcb88a authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Pekka Paalanen
Browse files

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: default avatarJonas Ådahl <jadahl@gmail.com>
Reviewed-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
Reviewed-by: default avatarBryce Harrington <bryce@osg.samsung.com>
[Pekka: changed the error message wording]
Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent cde251a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment