From 24928b85dc996c8d0a052ddf383df25718ee5305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sat, 15 Nov 2008 13:28:53 +0100 Subject: [PATCH] DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL. --- hw/xfree86/dri2/dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 4c5275791..3c852a462 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -258,7 +258,7 @@ DRI2ClipNotify(WindowPtr pWin, int dx, int dy) DRI2ScreenPtr ds = DRI2GetScreen(pScreen); DRI2DrawablePtr dd = DRI2GetDrawable(&pWin->drawable); - if (ds->lastSequence < dd->pendingSequence && ds->Wait) + if (dd && ds->lastSequence < dd->pendingSequence && ds->Wait) ds->Wait(pWin, dd->pendingSequence); if (ds->ClipNotify) {