diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c index f8d99d6a2..075ccac83 100644 --- a/hw/xnest/GC.c +++ b/hw/xnest/GC.c @@ -225,7 +225,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;