diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c index a50803ea5..f9f60177f 100644 --- a/hw/xnest/GC.c +++ b/hw/xnest/GC.c @@ -224,7 +224,7 @@ xnestChangeClip(GCPtr pGC, int type, void *pValue, int nRects) * current pixmap contents. */ pGC->clientClip = (*pGC->pScreen->BitmapToRegion) ((PixmapPtr) pValue); - (*pGC->pScreen->DestroyPixmap) ((PixmapPtr) pValue); + dixDestroyPixmap((PixmapPtr) pValue, 0); pValue = pGC->clientClip; break;