xwayland: Monitor client states to destroy callbacks

Graphics / X.Org / X.Org Server - Olivier Fourdan [redhat.com] - 9 March 2017 03:37 EST

Client resources can survive the client itself, in which case we may end up in our sync callback trying to access client's data after it's been freed/reclaimed.

Add a ClientStateCallback handler to monitor the client state changes and clear the sync callback set up by the glamor drm code if any.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=100040

937527f xwayland: Monitor client states to destroy callbacks
hw/xwayland/xwayland-glamor.c | 59 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 50 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share