From 0352cbccedb84e59039bc85d21f28bec212249b2 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 23 Aug 2014 15:33:13 +0100 Subject: [PATCH] sna/dri2: Unhook event from draw list upon client destruction References: https://bugs.freedesktop.org/show_bug.cgi?id=82979 Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index dda301e..d857ad1 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1386,6 +1386,7 @@ sna_dri2_client_gone(CallbackListPtr *list, void *closure, void *data) assert(event->client == client); if (event->queued) { + sna_dri2_remove_event((WindowPtr)event->draw, event); event->client = NULL; event->draw = NULL; list_del(&event->link); -- 1.9.1