wayland-client: Avoid null dereference when handling deletion
authorRob Bradford <rob@linux.intel.com>
Thu, 4 Apr 2013 16:26:57 +0000 (17:26 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 4 Apr 2013 16:39:57 +0000 (12:39 -0400)
commit9fbcc7ae7dbbca215d0a1edcede4b7cc95ced7f2
tree9e9cf8663a6979c9b21ef55ef60d0b30c000abed
parent477dcd84c7b350ebdc5da1e2243cbcd2abfbdc80
wayland-client: Avoid null dereference when handling deletion

If an unknown id is deleted then the lookup in the map will return NULL and
so we should avoid dereferencing that.

As this is unexpected behaviour log a message about the problem too.
src/wayland-client.c