egl/dri2: bail out on NULL dpy in dri2_display_release()
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 18 Aug 2016 15:43:36 +0000 (16:43 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:16:06 +0000 (12:16 +0100)
commitd6dcf3b4ca7053e9c49780a398c3baabd884ff2c
tree6ef580a318c63ffc1519f8d45f01017732f2f903
parent8fb9ea413de31cc6a95ac4c38215b621de728687
egl/dri2: bail out on NULL dpy in dri2_display_release()

Currently all callers are careful enough not to do that, yet that will
not be the case in the future.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c