mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +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:
@@ -126,7 +126,7 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid)
|
|||||||
|
|
||||||
/* drop our reference to any backing pixmap */
|
/* drop our reference to any backing pixmap */
|
||||||
if (glxPriv->type == GLX_DRAWABLE_PIXMAP)
|
if (glxPriv->type == GLX_DRAWABLE_PIXMAP)
|
||||||
glxPriv->pDraw->pScreen->DestroyPixmap((PixmapPtr) glxPriv->pDraw);
|
dixDestroyPixmap((PixmapPtr)glxPriv->pDraw, 0);
|
||||||
|
|
||||||
glxPriv->destroy(glxPriv);
|
glxPriv->destroy(glxPriv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user