GLX: Fix leak of X pixmaps associated with GLX pixmaps.

This commit is contained in:
Michel Dänzer 2007-10-22 18:28:03 +02:00
parent c6d36b1cee
commit fbe19c66c3

View File

@ -1215,6 +1215,11 @@ static int DoDestroyDrawable(__GLXclientState *cl, XID glxdrawable, int type)
return __glXError(GLXBadPbuffer);
}
}
if (type == GLX_DRAWABLE_PIXMAP) {
((PixmapPtr) pGlxDraw->pDraw)->refcnt--;
}
FreeResource(glxdrawable, FALSE);
return Success;