diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2008-11-15 13:28:53 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2008-11-15 13:28:53 +0100 |
commit | 24928b85dc996c8d0a052ddf383df25718ee5305 (patch) | |
tree | d8ad5e418ec9a951e72f86478f94d7cc9556fadb /hw | |
parent | e5271c374715dd4e9a724ab3e5f77108d4ce8c23 (diff) |
DRI2: Don't crash in DRI2ClipNotify when DRI2DrawablePtr is NULL.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/dri2/dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |