Avoid leaking a Pixmap for every glyph
This commit is contained in:
parent
0a71e1542a
commit
93ae6fe18c
|
@ -1209,6 +1209,11 @@ ProcRenderAddGlyphs (ClientPtr client)
|
|||
glyphSet->format,
|
||||
CPComponentAlpha, &component_alpha,
|
||||
serverClient, &error);
|
||||
|
||||
/* The picture takes a reference to the pixmap, so we
|
||||
drop ours. */
|
||||
(pScreen->DestroyPixmap) (pDstPix);
|
||||
|
||||
if (! pDst)
|
||||
{
|
||||
err = BadAlloc;
|
||||
|
|
Loading…
Reference in New Issue
Block a user