mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-21 15:48:32 +02:00
GLX: Fix leak of X pixmaps associated with GLX pixmaps.
This commit is contained in:
parent
c6d36b1cee
commit
fbe19c66c3
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue