wayland-drm: use a copy of the wayland_drm_callbacks struct
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 27 Sep 2017 18:49:11 +0000 (19:49 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 Oct 2017 11:56:12 +0000 (12:56 +0100)
commit0cfd6f6cfc9e90c12e4bad17dc47e7ce4cf1b9ac
tree0ab33d4839aaea458447865802ea1075a08e49a3
parent872a373bc829b7eb6d94063023934b3713185d75
wayland-drm: use a copy of the wayland_drm_callbacks struct

The callbacks may be called even when they are no longer valid.
Say, the user is dlclose(ing) libEGL while the buffers are being
destroyed.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Tested-by: Derek Foreman <derekf@osg.samsung.com>
src/egl/wayland/wayland-drm/wayland-drm.c