diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 94bfcdab..61917cfa 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1392,7 +1392,9 @@ 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); + if (event->draw) + sna_dri2_remove_event((WindowPtr)event->draw, + event); event->client = NULL; event->draw = NULL; list_del(&event->link); |