mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
glx: glxext fix memory leak when calling DestroyPixmap
Call dixDestroyPixmap instead pScreen->DestroyPixmap, which is correct
call to free resources as since cece84fa93
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue