mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 05:57:53 +00:00
glx: glxext fix memory leak when calling DestroyPixmap
Call dixDestroyPixmap instead pScreen->DestroyPixmap, which is correct call to free resources as since cece84fa93b17275dfebb729e7ab443344f52cd4 the Screen->DestroyPixmap function is no longer wrapped. Fixes: https://github.com/X11Libre/xserver/issues/1809 Signed-off-By: Tautvis <gtautvis@gmail.com>
This commit is contained in:
parent
e0f4acc929
commit
2cfb92330f
@ -126,7 +126,7 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid)
|
||||
|
||||
/* drop our reference to any backing pixmap */
|
||||
if (glxPriv->type == GLX_DRAWABLE_PIXMAP)
|
||||
glxPriv->pDraw->pScreen->DestroyPixmap((PixmapPtr) glxPriv->pDraw);
|
||||
dixDestroyPixmap((PixmapPtr)glxPriv->pDraw, 0);
|
||||
|
||||
glxPriv->destroy(glxPriv);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user