GLX: Fix leak of X pixmaps associated with GLX pixmaps.
This commit is contained in:
parent
c6d36b1cee
commit
fbe19c66c3
|
@ -1215,6 +1215,11 @@ static int DoDestroyDrawable(__GLXclientState *cl, XID glxdrawable, int type)
|
||||||
return __glXError(GLXBadPbuffer);
|
return __glXError(GLXBadPbuffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == GLX_DRAWABLE_PIXMAP) {
|
||||||
|
((PixmapPtr) pGlxDraw->pDraw)->refcnt--;
|
||||||
|
}
|
||||||
|
|
||||||
FreeResource(glxdrawable, FALSE);
|
FreeResource(glxdrawable, FALSE);
|
||||||
|
|
||||||
return Success;
|
return Success;
|
||||||
|
|
Loading…
Reference in New Issue