[PATCH] dri2: Only send the swap event if the client hasn't gone fishing

Chris Wilson chris at chris-wilson.co.uk
Sat May 15 11:28:15 PDT 2010


Fixes:

  Bug 27497 - xorg crashes after update to 1.8.0
  https://bugs.freedesktop.org/show_bug.cgi?id=27497

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Kristian Høgsberg <krh at bitplanet.net>
---
 hw/xfree86/dri2/dri2ext.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c
index 602eb66..9f69f3e 100644
--- a/hw/xfree86/dri2/dri2ext.c
+++ b/hw/xfree86/dri2/dri2ext.c
@@ -364,6 +364,9 @@ DRI2SwapEvent(ClientPtr client, void *data, int type, CARD64 ust, CARD64 msc,
     xDRI2BufferSwapComplete event;
     DrawablePtr pDrawable = data;
 
+    if (client->clientGone)
+	return;
+
     event.type = DRI2EventBase + DRI2_BufferSwapComplete;
     event.sequenceNumber = client->sequence;
     event.event_type = type;
-- 
1.7.1



More information about the xorg-devel mailing list